Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / writeing to a .txt file

Author
Message
smartypants
21
Years of Service
User Offline
Joined: 27th Apr 2004
Location: At is computer
Posted: 9th May 2004 17:36
I need help writeing to a .txt file, I know you can save an array to a file, but that dosn't help when you have more than one array that needs to be writen to the same file in a pattern. I also want to know this so I can save something like a score and a player name.
Can any one help me with this?

King of the asked question
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 9th May 2004 19:31
Quote: "open to write 1,"filename"

write string 1,"Hello"
write file 1,integervalue

close file 1"




smartypants
21
Years of Service
User Offline
Joined: 27th Apr 2004
Location: At is computer
Posted: 9th May 2004 19:58
ohhhh. hahah that would have taken me for ever to find!!
Thanks

King of the asked question

Login to post a reply

Server time is: 2025-05-23 14:02:26
Your offset time is: 2025-05-23 14:02:26