Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can any one help me with the open/save command

Status
Not open for further replies.

shadowmaster

Programmer
Sep 5, 2002
3
US
ive tried make ing a file and try loading it to get data for
a high score but failed every time can anyone help thanks The shadow sees all cause the shadow is all
shadow_master@snowboard.com
 
open the file using OPEN FOR RANDOM
then PUT the high scores into the correct order in a FOR-NEXT loop
then CLOSE the file

to get them again OPEN the file
GET the scores using another FOR-NEXT loop
CLOSE
 
Any code you can share? It sounds like a coding problem; but without see it (any TYPEs, OPEN/CLOSE, PRINTS/WRITES/PUTS/GETs, etc) it's hard to tell or give you guidance.
 
thanks qbasicking ill try that

miggyd i have none right now but when i finish it and have a problem ill send it to you

thanks The shadow sees all cause the shadow is all
shadow_master@snowboard.com
 
Check to make sure you're closing the file after you're done. If you don't, it won't be saved.

 
I'm not trying to belittle you but if "i have none right now" then how do you know what the problem is? I'm talking about coding and/or file structure.

I was primarily asking for a snippit of the code you do have to see what may be the underlying problem.

(code snippit..)

Open "ThisFileIsTheOneIWantToWriteMyInfoOn" for SomeThingStrange as ANumberIChose
write "This is wrong", #ANyNumberIChoose
print #AnumberChoosen, "This is wrong too"
close

(end snippit..)

something like that.
--MiggyD

PS: Don't bother using the above it's full of errors on purpose, but you can study it because in essence it's correct.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top