read/write file how to?

You must understand the Game Editor concepts, before post here.

read/write file how to?

Postby Thanx » Tue Jul 01, 2008 7:24 pm

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
http://www.youtube.com/watch?v=XyXexDJBv58
http://www.youtube.com/watch?v=Be4__gww1xQ
These are me and playing the piano (second one with a friend/fellow student)
Hope you watch and enjoy!
User avatar
Thanx
 
Posts: 314
Joined: Sat Jan 26, 2008 10:07 pm
Location: Home sweet home! :)
Score: 24 Give a positive score

Re: read/write file how to?

Postby Thanx » Tue Jul 01, 2008 11:07 pm

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?
Attachments
filehandling.zip
What's wrong with this? :S
(192.34 KiB) Downloaded 116 times
http://www.youtube.com/watch?v=XyXexDJBv58
http://www.youtube.com/watch?v=Be4__gww1xQ
These are me and playing the piano (second one with a friend/fellow student)
Hope you watch and enjoy!
User avatar
Thanx
 
Posts: 314
Joined: Sat Jan 26, 2008 10:07 pm
Location: Home sweet home! :)
Score: 24 Give a positive score


Return to Advanced Topics

Who is online

Users browsing this forum: No registered users and 1 guest