Here is a test script:
Code: Select all
OpenFile(1,"test",#MODE_WRITE)
Seek(1,100)
WriteString(1,"DEADBEEF")
CloseFile(1)
DebugPrint(FileSize("test"))
The results:
AmigaOS4: 8
win32: 108
Code: Select all
OpenFile(1,"test",#MODE_WRITE)
Seek(1,100)
WriteString(1,"DEADBEEF")
CloseFile(1)
DebugPrint(FileSize("test"))
Code: Select all
- Fix [Win32/Linux/MacOS/Android]: Using Seek() to position the cursor after the end of file when
the file is in write mode actually filled the gap with zeros; this was inconsistent with the
behaviour on AmigaOS; now it's impossible to position to cursor after the end of file with
Seek()