Re: Reading and Writing to text files
Re: Reading and Writing to text files
- Subject: Re: Reading and Writing to text files
- From: Nigel Garvey <email@hidden>
- Date: Sat, 6 Jan 2001 03:07:26 +0000
Victor Yee wrote on Fri, 5 Jan 2001 15:16:14 -0500:
>
The results indicate that writing and closing by file specification works
>
fine.
>
(And it took so long to compose my erroneous letter, too ;-)
>
>
Which makes me wonder why Jason was getting that "File not open with write
>
permission" error. Jason, did you ever solve your problem?
By my theory, the file was also open for read-only access and the write
by file specification command was picking up that access ID instead of
the one that was open with write permission. If, by some accident, a file
has been left open and you don't have the access ID, you can shut it by
file specification - or reboot the computer, of course.
repeat 20 times
close file myPath
end repeat
(You can close an already shut file without getting an error.)
NG