27 Oct
2006
27 Oct
'06
2:25 a.m.
if you had a Type like the following: ====================== Type TString12 = String[12]; ======================= and you had some old (PowerPC) code which read one in from a file as in: ====================== Procedure ReadStrings(FromFile:String); Var fToFile:Text; dataToRead: TString12; begin Open(fTextAbout, FromFile); ReadBytes:=ByteRead(fTextAbout, dataToRead,SizeOf (TString12)); ===================== Then how would you read it in using code that will work on both PowerPC and x86 processors? I looked at the data file, and it appears to be mainly text separated by null characters and occasionally null+linefeeds. Thanks. --glenn