AssignFile(f, 'Id.Txt');
Reset(f);
WriteLn(f, 'Testing');
CloseFile(f);
Is this a result of Windows XP setting ? Is it fixable ?
Les
> suddenly every time I use Writln function I get " io error 105"
>
> AssignFile(f, 'Id.Txt');
> Reset(f);
> WriteLn(f, 'Testing');
> CloseFile(f);
That appears to be 'file not open for output', as indicated by a
quick google for 'pascal error 105'. It does reduce the credibility
of the 'suddenly' bit somewhat.
Type 'rewrite', press F1, read help.
Groetjes,
Maarten Wiltink
In addition to what Maarten said, did you happen to change the file type
from e.g. "file" to "text" or "textfile" ?
reset opens readwrite for the "file" type, but is readonly for "text".
Rewrite worked, Thank You very much.
The "suddenly" because of having used the function repeatedly for
years ,
(declaring f : TextFile;) without problems. Never mind, sorted now
with your help.
Les