Disregard my previous message. Only the first element of the data file was a string, and the first byte was the length, so I was able to read it manually.
--glenn
On Oct 26, 2006, at 8:25 PM, Glenn Howes wrote:
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