I have a file of bytes 1.5GB in size {filebyte}
. I want to read the entire file in one instance instance similar to Delphi's
bytedata:=filebyte.readallbytes(filename);
The result being that in one instance you will have a bytearray with the number of elements being high(bytedata)-low(bytedata)+1. Is there equivalent code in Cache. Can a file of 1.5G in size be held in memory in cache. I do not want to read the file in blocks as the operation to analyse the data requires that the whole file be in memory at one time. Thanks