Bug with #MODE_READWRITE

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

Bug with #MODE_READWRITE

Post by PEB »

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: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Bug with #MODE_READWRITE

Post by airsoftsoftwair »

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