- Joined
- Dec 13, 2018
- Messages
- 375
I'm doing this test to write out an integer to a file:
According to the table in Help, I should be using the 'file' path prefix (cerberus://internal/) for FileStream.Open on GLFW but it falls over when trying to perform the write (line 84 of stream.cxs)
If I comment out the write it crashes when attempting to Close() with a memory access violation.
I'm guessing the file isn't being created...
This is on Linux and I'm writing to a subdirectory of my home folder so permissions shouldn't be an issue.
Code:
' open default file for output
Local fileOut:FileStream = FileStream.Open(" cerberus://internal/world.dat", "w")
' write out test value
fileOut.WriteInt(123)
' close file
fileOut.Close()
According to the table in Help, I should be using the 'file' path prefix (cerberus://internal/) for FileStream.Open on GLFW but it falls over when trying to perform the write (line 84 of stream.cxs)
If I comment out the write it crashes when attempting to Close() with a memory access violation.
I'm guessing the file isn't being created...
This is on Linux and I'm writing to a subdirectory of my home folder so permissions shouldn't be an issue.