|
 |
|
Dev Hardware Forums
> SOFTWARE
> Programming
|
Batch Save Text File
Discuss Batch Save Text File in the Programming forum on Dev Hardware. Batch Save Text File Programming forum discussing administration and coding scripts in languages including PHP, C++, C, Perl, Java, Visual Basic, XML, HTML, CGI, ActionScript, CSS, JavaScript, Fortran, BASH, and issues related to databases and even batch files.
|
|
 |
|
|
|
|

Dev Hardware Forums Sponsor:
|
|
|

December 8th, 2012, 12:34 PM
|
|
n00b DevH'er
|
|
Join Date: Dec 2012
Location: United States
Posts: 3
Time spent in forums: 49 m 55 sec
Reputation Power: 0
|
|
|
Batch Save Text File
Hello, I am making a text based game in batch but I want the game to save progress in a text file. Including Inventory, Save Names, Health, and game progress. How would I go about doing this? For now I'd just like the progress save and possibly go into the other things later. Also, I didn't know to put this under DOS Batch or NT Batch, what one is correct?
|

December 8th, 2012, 04:21 PM
|
 |
Contributing User
|
|
Join Date: Jan 2008
Location: Lilyfield NSW Australia
|
|
|
There are several batch software programs which one are you using?
The batch in these forums normally refers to the batch command line utility for processing command lines in a batch (.bat) script.
__________________
|

December 8th, 2012, 10:30 PM
|
|
n00b DevH'er
|
|
Join Date: Dec 2012
Location: United States
Posts: 3
Time spent in forums: 49 m 55 sec
Reputation Power: 0
|
|
|
I'm just saving code in a .bat file and running it.
|

December 8th, 2012, 10:45 PM
|
 |
Contributing User
|
|
Join Date: Jan 2008
Location: Lilyfield NSW Australia
|
|
|
I don't know how you are going to make a game out of a batch file, so that is interesting.
To redirect text output to a file you just run the program or command and "> filename" at the end of the line (no quotes) to send the standard text output to the file named filename in this example.
|

December 9th, 2012, 12:42 PM
|
|
n00b DevH'er
|
|
Join Date: Dec 2012
Location: United States
Posts: 3
Time spent in forums: 49 m 55 sec
Reputation Power: 0
|
|
|
I was making a text based zombie sort of thing. =). Can it read the file and look for things such as a name of the player they submitted before?
|

December 9th, 2012, 03:56 PM
|
 |
Contributing User
|
|
Join Date: Jan 2008
Location: Lilyfield NSW Australia
|
|
|
I am sure there are utilities outside of normal batch commands that can help, you will need to search for them.
What you are trying to do sounds more like something you would do with a unix shell script.
|
Developer Shed Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|