Hi Matt,
f := TFileStream.create(filename, fmOpenRead );
try
setlength(str, f.Size);
if f.Size > 0 then
f.Read(str[1], f.size);
finally
f.free;
end;
Jeff Sinclair
PS: If I'm first send fish to :
Jeff Sinclair
141 Main Street
Osborne Park
Western Australia 6017
Australia
At 12:45 PM 20/06/2000, you wrote:
>Chocolate fish to the first person who can tell me the correct way to get
>data from a filestream to a string ??
>
>Cheers,
>
>Matt.
>
>---------------------------------------------------------------------------
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz