Mayayana
2014-07-07 03:19:53 UTC
A tidbit of info for future reference:
I've just been dealing with parsing a CSV file that's 173 MB.
I needed to adjust each line and write a new file. The new file
is 82 MB. Everything worked fine. I split the CSV into a
string array, wrote each new line to a new array, then used
Join to make a string. But when I tried to write it to disk I
kept getting an out of memory error. Textstream just
couldn't do it. I ended up opening the file for appending, then
wrote 1 MB at a time from the string until it was all written
to disk. That worked fine, even though Textstream.Write the82MBstring
failed. If anyone knows what the actual limit is I'd be curious
to know.
I've just been dealing with parsing a CSV file that's 173 MB.
I needed to adjust each line and write a new file. The new file
is 82 MB. Everything worked fine. I split the CSV into a
string array, wrote each new line to a new array, then used
Join to make a string. But when I tried to write it to disk I
kept getting an out of memory error. Textstream just
couldn't do it. I ended up opening the file for appending, then
wrote 1 MB at a time from the string until it was all written
to disk. That worked fine, even though Textstream.Write the82MBstring
failed. If anyone knows what the actual limit is I'd be curious
to know.