Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
Delphi 10.2 Tokyo Professional
|
Re: Binärdatei auslesen
28. Mai 2010, 10:42
Hallo,
Tja Delphi kaut dir in der Hinsicht halt nicht alles vor
Delphi-Quellcode:
var ms: TMemoryStream;
int: Integer;
begin
ms := TMemoryStream.Create;
try
ms.LoadFromFile(<Datei>);
ms.Read(int,SizeOf(Integer));
ShowMessage(Format('Die eingelesene Zahl lautet: %d',[int]));
finally
ms.Free;
end;
end;
Michael "Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
|