Function GetFiledata(FileName: String): String;
Var
r: String;
f: TFileStream;
Begin
Try
result := '';
F := TFileStream.Create(FileName, fmOpenRead Or fmShareDenyNone);
Try
setlength(r, f.size);
F.Read(r[1], f.size);
Finally
F.Free;
End;
result := r;
Except
End;
End;