Page 1 of 1

Debugger check for writing to read-files

Posted: Sat Jan 30, 2010 6:42 pm
by Trond
It would be nice if this gave a debugger message:

Code: Select all

ReadFile(0, "c:\test2.pb")
WriteString(0, "asdf")
Also, the help for CreateFile() doesn't say that the file is opened in write-only mode, which it is according to the help of OpenFile().