With the system function, you can do EZ save games! Just look:
void SAVE()
{
system("saver > SAV.txt")
}
saver:
void Main()
{
printf("SUMVAR="SUMVAR+"\n")
printf(("SUMVAR2="SUMVAR2+"\n")
//And so on...
}
and that is the EZ saver way!
*ANDREW PUTS A FIRE PROOF SUIT AND IS AWAITING FLAMES*
Now, of course, it ONLY works in dos...
---START GEEK CODE BLOCK---GCS/M/S dpu s:+ a---- C++ UL(+) P(++) L+(+) E--- W++ N+ o K w(--) !O !M !V PS- PE+Y+ PGP+ t 5 X-- R tv+ b+ DI+ D G e* h! r-- !x ---END GEEK CODE BLOCK---
the sad thing is, if you''re smart enough to know about old functions like system() and tricks like using >, you could probably figure out how to use the FILE object and fopen().