1.

Solve : Batch Game Save?

Answer» <html><body><p>I am currently creating a batch game (297 lines of coding on my first <a href="https://interviewquestions.tuteehub.com/tag/day-244454" style="font-weight:bold;" target="_blank" title="Click to know more about DAY">DAY</a>!!!) but I can't get it to save your progress. <a href="https://interviewquestions.tuteehub.com/tag/please-601513" style="font-weight:bold;" target="_blank" title="Click to know more about PLEASE">PLEASE</a> HELP. ANYTHING WILL BE APRECIATED!!!We'll have to see the code to help....<br/>save to a txt, like this<br/> Quote</p><blockquote>name1 - progress1<br/>name2 - progress2</blockquote> What i did in my batch game ,<a href="https://interviewquestions.tuteehub.com/tag/found-458144" style="font-weight:bold;" target="_blank" title="Click to know more about FOUND">FOUND</a> here odn.t35.com/DEAD , was have all game features set in variables, when save is pressed have all variables sent to a file similar to this...<br/><br/>score 993<br/><br/>Then for load, i used for /f and seperated it as <a href="https://interviewquestions.tuteehub.com/tag/tokens-1421690" style="font-weight:bold;" target="_blank" title="Click to know more about TOKENS">TOKENS</a>.. so score <a href="https://interviewquestions.tuteehub.com/tag/would-3285927" style="font-weight:bold;" target="_blank" title="Click to know more about WOULD">WOULD</a> become %%a and 993 would become %%b for example:<br/><br/><br/><strong>for /f "tokens=1*" %%a in (savefile.txt) Do set %%a=%%b</strong></body></html>


Discussion

No Comment Found