Seek() behaves different on win32 and Amiga
Posted: Mon Mar 14, 2016 7:45 pm
If you Seek() over the length of a writeable file, Amiga stops at the file end, while win32 fills the gap with zeros.
Here is a test script:
The results:
AmigaOS4: 8
win32: 108
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