I have this in one of my basic programs...
Data 0,0,0,0,0
Data 1,4,5,3,1
Data 1,4,7,9,3
What I need is to be able to put those values into a file and import them when I need them....
How can I do that?
Thanks
Printable View
I have this in one of my basic programs...
Data 0,0,0,0,0
Data 1,4,5,3,1
Data 1,4,7,9,3
What I need is to be able to put those values into a file and import them when I need them....
How can I do that?
Thanks
I would be inclined to print them to a file separated with a comma for easy separation when it comes to reading them back again.
NIck
do you need to know how to export things to a file or do you know what nickjc is talkin about?
heres a quick program i threw together to just print those data values to a file...
i dont know if it helps you any though...Code:OPEN "c:\data.dat" FOR OUTPUT AS #1
1 : READ val1, val2, val3, val4, val5
IF val1 <> -99 THEN
WRITE #1, val1, val2, val3, val4, val5
ELSE
END
END IF
GOTO 1
DATA 0,0,0,0,0
DATA 1,4,5,3,1
DATA 1,4,7,9,3
DATA -99,-99,-99,-99,-99