Debugger check for writing to read-files

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Debugger check for writing to read-files

Post 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().