Hello everybody,
I was wondering if you could help me with a puzzle i've been trying to figure out for awhile.
I have been writing a simple program in QB that uses numbers in strings to keep track of the game's situation.
The problem I have is I can't figure out how to save those numbers to a file on the computer and then re-load them back up and get them in to the right strings again.
Any ideas?
I use Strings like A, B,C, D, E, etc. I just can't get the numbers to get re-assigned to them.
Thanks,
Save Function
hehe
can u explain it better? wat does the "%" symbol means???
can u explain it better? wat does the "%" symbol means???
<b><i> "Rock is the first thing in life, after rock comes the comp...." Rock on Big M</i></b>
<img src="http://www.freewebs.com/mundofr/bigm2.bmp">
<img src="http://www.freewebs.com/mundofr/bigm2.bmp">
-
- Veteran
- Posts: 1055
- Joined: Sun Jan 02, 2005 2:11 pm
- Location: At my computer
- Contact:
Um,. off the top of my head...
Saving to a file...
Reading saved info...
Like that,..
Saving to a file...
Code: Select all
OPEN "Filename.txt" FOR OUTPUT AS #1
PRINT #1, A, B, C, D, E
CLOSE #1
Code: Select all
OPEN "Filename.txt" FOR INPUT AS #1
INPUT #1, A, B, C, D, E
CLOSE #1
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
(x.t.r.GRAPHICS)