J jeary Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-29 #1 [?]各位大蝦:如何把一個文本文件與二進制文件相互轉換,
H HunterTeam Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-30 #2 可将其以流的形式转换吧。 var Stream:TMemoryStream; begin Stream:=TMemoryStream.Create; Stream.LoadFromFile('xxx.txt'); Stream.SaveToFile('二进制文件名'); Stream.Free; end;
可将其以流的形式转换吧。 var Stream:TMemoryStream; begin Stream:=TMemoryStream.Create; Stream.LoadFromFile('xxx.txt'); Stream.SaveToFile('二进制文件名'); Stream.Free; end;