Page 1 of 1

read/write file how to?

PostPosted: Tue Jul 01, 2008 7:24 pm
by Thanx
Hey folks!
In my new game, I want to do several things. I need the exe, and the dat file to communicate. Cause the exe is the menu, and the dat file is the level, but in the menu is where you select varius things to make the level work. I defined my stuff in the Global code and not in the variables part, cause not only are there variables, but also arrays and structs in the pack too.

If that can be done, I'llbe able to do the ret of my game, and finish it, hopefully in a week!
Cheers!
Thanx

Re: read/write file how to?

PostPosted: Tue Jul 01, 2008 11:07 pm
by Thanx
I myself already looked at the script reference and found some of the functions
But I didn't understand the script refence well enough to work from that... Did further investigation...
http://c-programming.suite101.com/article.cfm/c_tutorial_file_handling_commands
Found that, and I understand it a little better now, I tried it out, and it doesn't seem to work... I'm posting it here, so you can see what I did... Can anyone tell me what's wrong here?