Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

WriteLn gives io error 105

3,046 views
Skip to first unread message

Les

unread,
May 16, 2011, 1:16:27 AM5/16/11
to
suddenly every time I use Writln function I get " io error 105"

AssignFile(f, 'Id.Txt');
Reset(f);
WriteLn(f, 'Testing');
CloseFile(f);

Is this a result of Windows XP setting ? Is it fixable ?
Les

Maarten Wiltink

unread,
May 16, 2011, 3:22:30 AM5/16/11
to
"Les" <les.r...@hotmail.com> wrote in message
news:558f5d19-3a00-4b9d...@h12g2000pro.googlegroups.com...

> 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


Marco van de Voort

unread,
May 16, 2011, 3:44:49 AM5/16/11
to

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".

Les

unread,
May 16, 2011, 4:57:29 AM5/16/11
to

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

0 new messages