How to read an entire file into a string variable?

Blitz3D Forums/Blitz3D Beginners Area/How to read an entire file into a string variable?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Wow! Plenty of good ideas for me to work on...

At 0.3s, it will be more than fast enough. I may also try Floyd's idea in a slightly modified way: to overwrite the first 4 bytes in the file to make an integer that will be equal the length of the remaining bytes of the files and then read it as a string. That should work as I don't need those first 4 bytes anyway. I should work on a copy of a the file, though, which may slows down things a bit.

Thanks alot, guys.