@Luckie
was ist jetzt wenn ich nicht nur 1024 KB einlesen will sondern die ganze Datei ?
z.b: ein 10 MB großes File ?
Und wie man ja so schön sagt : Aus Fragen lernt man
also:
Delphi-Quellcode:
try
// as long as we have not reached the end of the source stream
while (SrcStream.Position < SrcStream.Size) do
begin
// how much to read
if SrcStream.Size - SrcStream.Position > BlockSize then
Len := BlockSize
else
Len := SrcStream.Size - SrcStream.Position;
// read into the buffer
Was wird da genau gemacht ?
SrcStream.ReadBuffer(Buffer^, Len);
Was ist der unterschied zwischen readBuffer und Read bzw. WriteBuffer und Write ?
Danke im Voraus.