T
tianxu516
Unregistered / Unconfirmed
GUEST, unregistred user!
我想将temp的内容写入文件中,用下面的代码
FileHandle := FileCreate('.//a.txt',fmOpenWrite);
temp := '123456';
FileWrite(FileHandle,temp,sizeof(temp));
FileClose(FileHandle);
但结果却是乱码,请问是怎么回事,谢谢!
FileHandle := FileCreate('.//a.txt',fmOpenWrite);
temp := '123456';
FileWrite(FileHandle,temp,sizeof(temp));
FileClose(FileHandle);
但结果却是乱码,请问是怎么回事,谢谢!