A
awfigsk
Unregistered / Unconfirmed
GUEST, unregistred user!
我用下面代码往流中写入汉字,但打开保存后的文件内容是乱码,这是怎么回事?
还请指点!
var
bb:TMemoryStream;
s:string;
begin
s:='中文';
bb:=TMemoryStream.Create;
bb.Write(s,Length(s));
bb.SaveToFile('cc.txt');
bb.Free;
end;
还请指点!
var
bb:TMemoryStream;
s:string;
begin
s:='中文';
bb:=TMemoryStream.Create;
bb.Write(s,Length(s));
bb.SaveToFile('cc.txt');
bb.Free;
end;