forums

TNT Basic Forums > Programming Q&A
Files
< Last Thread     Next Thread >
Author
Thread        Post A Reply

09-20-2002 19:59

Posted by:
Mathew

Find more posts by Mathew

Could anybody help me with files?

In my game, each player has his file and the computer change it every time something happens to save it for the next time.

I use 3 important variables that can equal from 0 to 7.
If they all equal 0, It will write 000 to the file. The only problem is that when I resave in the same file, it does not erase the old information.
example: 000 012 123

and when I try to read from the file, it inputs only the three first numbers!!!!

If the file contains 252 565 834 and I read in it, it reads only 252!!!

Could anybody help me?

09-21-2002 14:47

Posted by:
Robinson

Click Here to Email Robinson   Find more posts by Robinson

Hi, Matthew.

Post the code for handling the files, and somebody will figure it out :)

-Charles

09-21-2002 16:21

Posted by:
mathew

Find more posts by mathew

I finally fixed it using set position. Sorry to have asked you.

All times are GMT        Post A Reply

Forum Jump:
< Last Thread     Next Thread >

< Contact Us - TNT Basic >

Powered by: vBulletin Lite Version 1.0.1 Lite
Copyright © Jelsoft Enterprises Limited 2000.