Backup option in a game ( C ) [on hold]











up vote
-1
down vote

favorite












I'm creating a game in C that I just finished and I would like to make a "save" option so that when we leave the game, by restarting it, we can make "resume the game" and so take back where we are.



Thanks !










share|improve this question









New contributor




Weder is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











put on hold as unclear what you're asking by dbush, Eric Postpischil, Broman, mkrieger1, tmlen 2 days ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.











  • 3




    en anglais, svp
    – MattHusz
    2 days ago










  • @MattHusz I am creating a game in C that I just finished and I would like to make a "save" option so that when we leave the game, by restarting it, we can make "resume the game" and so take back where we are
    – Weder
    2 days ago






  • 2




    @Weder please update your question with that description rather than posting a comment.
    – Jules
    2 days ago






  • 1




    Even in English, the question is too broad: Please show what you have tried and what specific problem you are facing.
    – mkrieger1
    2 days ago












  • @Weder you can improve your question by breaking it up into parts; in your case, that might be "how can I serialize (some part of) my game state," then "how can I write/read game state into/from a file" (which likely already has answers), and "how can I deserialize game state into my engine?"
    – Jules
    2 days ago















up vote
-1
down vote

favorite












I'm creating a game in C that I just finished and I would like to make a "save" option so that when we leave the game, by restarting it, we can make "resume the game" and so take back where we are.



Thanks !










share|improve this question









New contributor




Weder is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











put on hold as unclear what you're asking by dbush, Eric Postpischil, Broman, mkrieger1, tmlen 2 days ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.











  • 3




    en anglais, svp
    – MattHusz
    2 days ago










  • @MattHusz I am creating a game in C that I just finished and I would like to make a "save" option so that when we leave the game, by restarting it, we can make "resume the game" and so take back where we are
    – Weder
    2 days ago






  • 2




    @Weder please update your question with that description rather than posting a comment.
    – Jules
    2 days ago






  • 1




    Even in English, the question is too broad: Please show what you have tried and what specific problem you are facing.
    – mkrieger1
    2 days ago












  • @Weder you can improve your question by breaking it up into parts; in your case, that might be "how can I serialize (some part of) my game state," then "how can I write/read game state into/from a file" (which likely already has answers), and "how can I deserialize game state into my engine?"
    – Jules
    2 days ago













up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











I'm creating a game in C that I just finished and I would like to make a "save" option so that when we leave the game, by restarting it, we can make "resume the game" and so take back where we are.



Thanks !










share|improve this question









New contributor




Weder is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I'm creating a game in C that I just finished and I would like to make a "save" option so that when we leave the game, by restarting it, we can make "resume the game" and so take back where we are.



Thanks !







c






share|improve this question









New contributor




Weder is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Weder is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 2 days ago





















New contributor




Weder is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 2 days ago









Weder

23




23




New contributor




Weder is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Weder is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Weder is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




put on hold as unclear what you're asking by dbush, Eric Postpischil, Broman, mkrieger1, tmlen 2 days ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.






put on hold as unclear what you're asking by dbush, Eric Postpischil, Broman, mkrieger1, tmlen 2 days ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.










  • 3




    en anglais, svp
    – MattHusz
    2 days ago










  • @MattHusz I am creating a game in C that I just finished and I would like to make a "save" option so that when we leave the game, by restarting it, we can make "resume the game" and so take back where we are
    – Weder
    2 days ago






  • 2




    @Weder please update your question with that description rather than posting a comment.
    – Jules
    2 days ago






  • 1




    Even in English, the question is too broad: Please show what you have tried and what specific problem you are facing.
    – mkrieger1
    2 days ago












  • @Weder you can improve your question by breaking it up into parts; in your case, that might be "how can I serialize (some part of) my game state," then "how can I write/read game state into/from a file" (which likely already has answers), and "how can I deserialize game state into my engine?"
    – Jules
    2 days ago














  • 3




    en anglais, svp
    – MattHusz
    2 days ago










  • @MattHusz I am creating a game in C that I just finished and I would like to make a "save" option so that when we leave the game, by restarting it, we can make "resume the game" and so take back where we are
    – Weder
    2 days ago






  • 2




    @Weder please update your question with that description rather than posting a comment.
    – Jules
    2 days ago






  • 1




    Even in English, the question is too broad: Please show what you have tried and what specific problem you are facing.
    – mkrieger1
    2 days ago












  • @Weder you can improve your question by breaking it up into parts; in your case, that might be "how can I serialize (some part of) my game state," then "how can I write/read game state into/from a file" (which likely already has answers), and "how can I deserialize game state into my engine?"
    – Jules
    2 days ago








3




3




en anglais, svp
– MattHusz
2 days ago




en anglais, svp
– MattHusz
2 days ago












@MattHusz I am creating a game in C that I just finished and I would like to make a "save" option so that when we leave the game, by restarting it, we can make "resume the game" and so take back where we are
– Weder
2 days ago




@MattHusz I am creating a game in C that I just finished and I would like to make a "save" option so that when we leave the game, by restarting it, we can make "resume the game" and so take back where we are
– Weder
2 days ago




2




2




@Weder please update your question with that description rather than posting a comment.
– Jules
2 days ago




@Weder please update your question with that description rather than posting a comment.
– Jules
2 days ago




1




1




Even in English, the question is too broad: Please show what you have tried and what specific problem you are facing.
– mkrieger1
2 days ago






Even in English, the question is too broad: Please show what you have tried and what specific problem you are facing.
– mkrieger1
2 days ago














@Weder you can improve your question by breaking it up into parts; in your case, that might be "how can I serialize (some part of) my game state," then "how can I write/read game state into/from a file" (which likely already has answers), and "how can I deserialize game state into my engine?"
– Jules
2 days ago




@Weder you can improve your question by breaking it up into parts; in your case, that might be "how can I serialize (some part of) my game state," then "how can I write/read game state into/from a file" (which likely already has answers), and "how can I deserialize game state into my engine?"
– Jules
2 days ago












1 Answer
1






active

oldest

votes

















up vote
-2
down vote













Une fois que tu as défini la structure des données à sauvegarder, utilise les fonctions fwrite/fread pour écrire/lire dans un fichier selon ton propre format adapté à ton jeu.



Once the data structure defined, use fwrite/fread functions to write/read into a file using your specific format.






share|improve this answer

















  • 1




    StackOverflow est un site anglophone; veuillez repondre en anglais si vous pouvez / StackOverflow is an English-language site; please answer in English if you can.
    – Jules
    2 days ago










  • i wrote both, french and english....
    – MLeblanc
    2 days ago










  • While it's good that you're trying to make your answer more accessible by using two languages, it's preferable to use just English, given that this is an English-language community with strict rules governing question and answer quality.
    – Jules
    2 days ago










  • My bad, sorry, I corrected my question, she is in English now
    – Weder
    2 days ago










  • @Weber, you need to rewrite your question.... this one has been flagged, no one will answer
    – MLeblanc
    2 days ago


















1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
-2
down vote













Une fois que tu as défini la structure des données à sauvegarder, utilise les fonctions fwrite/fread pour écrire/lire dans un fichier selon ton propre format adapté à ton jeu.



Once the data structure defined, use fwrite/fread functions to write/read into a file using your specific format.






share|improve this answer

















  • 1




    StackOverflow est un site anglophone; veuillez repondre en anglais si vous pouvez / StackOverflow is an English-language site; please answer in English if you can.
    – Jules
    2 days ago










  • i wrote both, french and english....
    – MLeblanc
    2 days ago










  • While it's good that you're trying to make your answer more accessible by using two languages, it's preferable to use just English, given that this is an English-language community with strict rules governing question and answer quality.
    – Jules
    2 days ago










  • My bad, sorry, I corrected my question, she is in English now
    – Weder
    2 days ago










  • @Weber, you need to rewrite your question.... this one has been flagged, no one will answer
    – MLeblanc
    2 days ago















up vote
-2
down vote













Une fois que tu as défini la structure des données à sauvegarder, utilise les fonctions fwrite/fread pour écrire/lire dans un fichier selon ton propre format adapté à ton jeu.



Once the data structure defined, use fwrite/fread functions to write/read into a file using your specific format.






share|improve this answer

















  • 1




    StackOverflow est un site anglophone; veuillez repondre en anglais si vous pouvez / StackOverflow is an English-language site; please answer in English if you can.
    – Jules
    2 days ago










  • i wrote both, french and english....
    – MLeblanc
    2 days ago










  • While it's good that you're trying to make your answer more accessible by using two languages, it's preferable to use just English, given that this is an English-language community with strict rules governing question and answer quality.
    – Jules
    2 days ago










  • My bad, sorry, I corrected my question, she is in English now
    – Weder
    2 days ago










  • @Weber, you need to rewrite your question.... this one has been flagged, no one will answer
    – MLeblanc
    2 days ago













up vote
-2
down vote










up vote
-2
down vote









Une fois que tu as défini la structure des données à sauvegarder, utilise les fonctions fwrite/fread pour écrire/lire dans un fichier selon ton propre format adapté à ton jeu.



Once the data structure defined, use fwrite/fread functions to write/read into a file using your specific format.






share|improve this answer












Une fois que tu as défini la structure des données à sauvegarder, utilise les fonctions fwrite/fread pour écrire/lire dans un fichier selon ton propre format adapté à ton jeu.



Once the data structure defined, use fwrite/fread functions to write/read into a file using your specific format.







share|improve this answer












share|improve this answer



share|improve this answer










answered 2 days ago









MLeblanc

44026




44026








  • 1




    StackOverflow est un site anglophone; veuillez repondre en anglais si vous pouvez / StackOverflow is an English-language site; please answer in English if you can.
    – Jules
    2 days ago










  • i wrote both, french and english....
    – MLeblanc
    2 days ago










  • While it's good that you're trying to make your answer more accessible by using two languages, it's preferable to use just English, given that this is an English-language community with strict rules governing question and answer quality.
    – Jules
    2 days ago










  • My bad, sorry, I corrected my question, she is in English now
    – Weder
    2 days ago










  • @Weber, you need to rewrite your question.... this one has been flagged, no one will answer
    – MLeblanc
    2 days ago














  • 1




    StackOverflow est un site anglophone; veuillez repondre en anglais si vous pouvez / StackOverflow is an English-language site; please answer in English if you can.
    – Jules
    2 days ago










  • i wrote both, french and english....
    – MLeblanc
    2 days ago










  • While it's good that you're trying to make your answer more accessible by using two languages, it's preferable to use just English, given that this is an English-language community with strict rules governing question and answer quality.
    – Jules
    2 days ago










  • My bad, sorry, I corrected my question, she is in English now
    – Weder
    2 days ago










  • @Weber, you need to rewrite your question.... this one has been flagged, no one will answer
    – MLeblanc
    2 days ago








1




1




StackOverflow est un site anglophone; veuillez repondre en anglais si vous pouvez / StackOverflow is an English-language site; please answer in English if you can.
– Jules
2 days ago




StackOverflow est un site anglophone; veuillez repondre en anglais si vous pouvez / StackOverflow is an English-language site; please answer in English if you can.
– Jules
2 days ago












i wrote both, french and english....
– MLeblanc
2 days ago




i wrote both, french and english....
– MLeblanc
2 days ago












While it's good that you're trying to make your answer more accessible by using two languages, it's preferable to use just English, given that this is an English-language community with strict rules governing question and answer quality.
– Jules
2 days ago




While it's good that you're trying to make your answer more accessible by using two languages, it's preferable to use just English, given that this is an English-language community with strict rules governing question and answer quality.
– Jules
2 days ago












My bad, sorry, I corrected my question, she is in English now
– Weder
2 days ago




My bad, sorry, I corrected my question, she is in English now
– Weder
2 days ago












@Weber, you need to rewrite your question.... this one has been flagged, no one will answer
– MLeblanc
2 days ago




@Weber, you need to rewrite your question.... this one has been flagged, no one will answer
– MLeblanc
2 days ago



Popular posts from this blog

What visual should I use to simply compare current year value vs last year in Power BI desktop

How to ignore python UserWarning in pytest?

Alexandru Averescu