Registriert seit: 27. Apr 2003
Ort: Bad Honnef
1.644 Beiträge
Delphi 2009 Professional
|
Re: TFileStream: Textdatei auslesen
3. Jan 2005, 10:30
Hallo,
versuch es mal wie folgt:
Delphi-Quellcode:
procedure TBL.Load(const AFileName: string);
var
Fs: TFileStream;
BytesRead: Integer;
Buffer: array[1..15] of Char;
begin
Fs := TFileStream.Create(AFileName, fmOpenRead + fmShareDenyNone);
try
While Fs.Position<=Fs.Size do
begin
BytesRead := Fs.Read(Buffer, Length(Buffer));
// Hier geht's dann weiter
end; // While Fs.Position<=Fs.Size do
finally
Fs.Free;
end;
end;
I come from outer space to save the human race
|