[fpc-pascal] Caching a big file on memory

Eduardo nec556 at retena.com
Mon Sep 11 20:37:00 CEST 2006

At 19:54 11/09/2006, you wrote:
>I don't tested this with large files, but why don't you use TMemoryStream:
>   myFile: TMemoryStream;
>   myFile := TMemoryStream.Create;
>   myFile.LoadFromFile('c:\myfile');
>   ...

Not need OOP for do it, i need as much speed as i can and using a 
plain array is faster than a stream. Also, now all compiles, perhaps 
for a temp files cleaning or the dos<->win32 (i don't use "windows" 
in uses clause, or my ide have dos as default) as Marco said.

Thanks again to all. 

More information about the fpc-pascal mailing list