File reading

Blitz3D Forums/Blitz3D Beginners Area/File reading

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)?

Make sure you are using ReadFile not OpenFile.

Why? In this case I think I need Openfile because I'm both reading and writing the file :/

I've resolved this one. Thanks.

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

I bet 2 gigabytes is the max.