
Opening / Writing To Files In PDS 7.1
Quote:
>I was wondering if anyone could give me some quick pointers through e-mail
>about how to open a file for input and how to read and write to that file. I
>have read the help section, but don't understand it too well. I'm trying to
>have my program I am writing open a file, and if the file has a certain number
>or something like that in it, then my program will do something. Hope that made
>sense. Thanks.
Yes, it makes sence. Assuming that you only need to hold one number to the
file it is rather simple:
OPEN "O", #1, "THENUMBR.DAT"
PRINT #1, Nbr%
CLOSE #1
OPEN "I", #1, "THENUMBR.DAT"
INPUT #1, Nbr%
CLOSE #1
This all is NOT particularly sophisticated but is works.
____ _ ____ ____ _____
| _ \ / \ / ___) __ | ___)(_ _) Don Schullian
|____//_/ \_\(____/\__/|_| |_| www.DASoftVSS
___________________________________ www.basicguru.com
Vertical Software Solutions