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 Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

Instead of reading the entire file into a single string you should read the file in a line at a time, using the same string variable every time, and check that line until you encounter the text you are looking for.

Or use a bank like GFK suggests. I should really learn how to use banks for data; I haven't done much file i/o other than ReadLine/WriteLine.