[No Bug] CreateFile() - Incorrect number of parameters.
Posted: Wed Jun 15, 2016 8:51 pm
Code: Select all
If CreateFile(0, "Text.txt")
CloseFile(0)
EndIf
- a basic to master the web -
https://forums.spiderbasic.com/
Code: Select all
If CreateFile(0, "Text.txt")
CloseFile(0)
EndIf
Code: Select all
Procedure CreateFileCallback()
Debug "CreateFileCallback()"
CloseFile(0)
EndProcedure
CreateFile(0, "Text.txt", @CreateFileCallback())
this one does not work either (?)Fred wrote:The callback is only reported read/write operations, not creation
Code: Select all
Procedure myCallback()
Debug "myCallback()"
EndProcedure
If CreateFile(0, "Text.txt", @myCallback())
Debug "CreateFile()"
WriteStringN(0, "This")
WriteStringN(0, "is")
WriteStringN(0, "a")
WriteStringN(0, "test")
CloseFile(0)
Else
Debug "!CreateFile()"
EndIf