I'm baa-ack! This time, I'm considering using xbasic to read and write files larger than 2GB. What data types do SEEK, LOF(), LOC(), etc. expect? Examples in the manual use 32-bit integers, but perhaps even if they are limited to 2GB, maybe larger files can be read and written if there's no SEEKing around and only EOF() is used to detect the end of input files?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You can read and write thouse files, but you would not be able to seek into the area >2GB. Maybe with successive RELSEEK in steps. LOF also cannot report the correct file size. You would also contruct a workarount (with RELSEEK). Or: use shell commands to split the file first, then read parts. Or call system sunctions (LINK and CALL) directly....
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm baa-ack! This time, I'm considering using xbasic to read and write files larger than 2GB. What data types do SEEK, LOF(), LOC(), etc. expect? Examples in the manual use 32-bit integers, but perhaps even if they are limited to 2GB, maybe larger files can be read and written if there's no SEEKing around and only EOF() is used to detect the end of input files?
You can read and write thouse files, but you would not be able to seek into the area >2GB. Maybe with successive RELSEEK in steps. LOF also cannot report the correct file size. You would also contruct a workarount (with RELSEEK). Or: use shell commands to split the file first, then read parts. Or call system sunctions (LINK and CALL) directly....