My code reads files into a string for processing. Today it broke with the error "Run-time error 7 Out of Memory" on a file with LOF (size) 153,344,779 bytes. This is surprising since strings should be allowed up to 2GB. Previous files were easily read by this command:
Dim strFile As String
strFile = Space(LOF(iFileNo)) ' Set File Buffer Size
strFile is Null with this file, however, and this command results in the Error message:
Get iFileNo, , strFile ' Load text [get error Run-time error 7 Out of Memory]
I would greatly prefer using the Get statement to the alternative of the repeated Line Input and redim into an ever-growing array.
Dim strFile As String
strFile = Space(LOF(iFileNo)) ' Set File Buffer Size
strFile is Null with this file, however, and this command results in the Error message:
Get iFileNo, , strFile ' Load text [get error Run-time error 7 Out of Memory]
I would greatly prefer using the Get statement to the alternative of the repeated Line Input and redim into an ever-growing array.