你可以不管他的,文本字符串不也是字节流吗?
例如:
type
TByteAry = array [0..1] of Byte;
PByteAry = ^TByteAry;
var
FS: TFileStream;
S: String;
Len: Integer;
P: PByteAry;
begin
var
FS: TFileStream;
I, Len, X: Integer;
S: String;
P: PByteAry;
begin
FS:= TFileStream.Create('MyFile.txt', fmOpenRead);
Len:= FS.Size;
SetLength(S, Len);
FS.Read(S[1], Len);
FS.Free;
P:= @S[1];
for I:= 1 to len do begin
X:= P^;
//...
end;
end;