I'm working with stream files, but "out of memory" error occurred. I think I must read stream, byte by byte. Then I load a file with this method:
fs := TFileStream.Create("c:\a\a.avi", fmOpenRead or fmShareDenyWrite) ;
Next i reset stream position:
fs.positon:=0;
Then i'm trying to read first byte of stream:
var
oneByte:byte;
begin
fs.Read(oneByte,2);
but it doesn't work properly. Where is my mistake?