J
Jason Barnett
I'm trying to read an entire file into memory. I've read various articles
suggesting how. Regardless of the approach (File.ReadAllBytes(),
FileStream.Read(), etc.), it appears that the data is read into a byte array.
However, a file's length is of "long" data type and a byte array's capacity
is of "int" data type.
Is there a different approach that will read the entire file into memory
when it exceeds that of 2.1GB? Granted, I'm not likely to need to read a
file larger than 2.1GB at this time, but I'm curious if there is a more
accomodating approach.
suggesting how. Regardless of the approach (File.ReadAllBytes(),
FileStream.Read(), etc.), it appears that the data is read into a byte array.
However, a file's length is of "long" data type and a byte array's capacity
is of "int" data type.
Is there a different approach that will read the entire file into memory
when it exceeds that of 2.1GB? Granted, I'm not likely to need to read a
file larger than 2.1GB at this time, but I'm curious if there is a more
accomodating approach.