04-22-2025, 04:55 AM
I wouldn't bother trying to put this into a `STRING`, QB64 simply does not handle `STRING`s of that size very well (or at all, in some cases). There are ways you can make it happen but you won't be able to do anything non-trivial with it as most `STRING` operations result in the `STRING` getting copied, which is a big problem if it's a 1GB string.
A better idea is to create a 1GB `_MEM` and handle the data that way. Doing anything with the `_MEM` after you read the data is of course trickier than using a `STRING`, but ultimately you were never going to be able to use the regular `STRING` functions anyway.
Alternatively you could consider whether you actually need the whole thing in memory at one time. If you can adapt what you're doing to act on chunks of Pi at a time then you can process it without ever needing a 1GB `STRING`.
A better idea is to create a 1GB `_MEM` and handle the data that way. Doing anything with the `_MEM` after you read the data is of course trickier than using a `STRING`, but ultimately you were never going to be able to use the regular `STRING` functions anyway.
Alternatively you could consider whether you actually need the whole thing in memory at one time. If you can adapt what you're doing to act on chunks of Pi at a time then you can process it without ever needing a 1GB `STRING`.

