Bug with #MODE_READWRITE

Report any Hollywood bugs here
Post Reply
PEB
Posts: 280
Joined: Sun Feb 21, 2010 1:28 am

Bug with #MODE_READWRITE

Post by PEB » Wed Jan 11, 2017 4:23 am

Unless I'm misunderstanding something, there's a bug here (at least it's not working as I would expect):

Code: Select all

OpenFile(1, "S:Startup-Sequence", #MODE_READWRITE)
While Not Eof(1) Do NPrint(ReadLine(1))
CloseFile(1)
The same code works fine if #MODE_READ is used instead.

User avatar
airsoftsoftwair
Posts: 3355
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Bug with #MODE_READWRITE

Post by airsoftsoftwair » Sun Jan 15, 2017 9:47 pm

Nice spot! This has been fixed now, thanks for the report! #MODE_WRITE was also affected by this bug.

Post Reply