File reading

Blitz3D Forums/Blitz3D Beginners Area/File reading

Farflame(Posted 2005) [#1]
I have no idea which forum to put this in, as it's not specific to any version of Blitz, but for the record I'm using Blitz3D.

Anyway, two questions about reading files from disk. Is there a maximum size for a file? I have a huge file (16mb) and when I tried to read 7mb into it using Seekfile I got a 'Illegal Memory Address' error.

Also, when reading towards the end of the file, it reads alot slower than at the start. Is this normal and can it be fixed, other than making the file smaller (or splitting it, which I'd rather not do)?


skidracer(Posted 2005) [#2]
Make sure you are using ReadFile not OpenFile.


Farflame(Posted 2005) [#3]
Why? In this case I think I need Openfile because I'm both reading and writing the file :/


Farflame(Posted 2005) [#4]
I've resolved this one. Thanks.

As far as I can tell, there is no size limit on files in Blitz, which is nice :)


jfk EO-11110(Posted 2005) [#5]
I bet 2 gigabytes is the max.