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.

Hi,
I'm just beginning to code with Blitz+ and, as my first project, I would like to open a MS Publisher file and extract some text out of it. Since I don't have the details of the .PUB file format, I plan to search within the file for a certain string which is always at the beginning of the text section I want to grab. For this, the INSTR command would be great, but:

1-How to put the entire file into a string variable without reading it byte by byte, which would be too slow
2- Is a 200K binary file too big to fit in a string?

Thnx in advance