Try replacing two chr(10)'s with another character before you start, and use that as the line delimiter.

<cfset txtVar=replace(txtVar,chr(10)&chr(10),chr(13),"ALL")>

Jerry Johnson

>>> [EMAIL PROTECTED] 11/03/03 10:32AM >>>
I have a Unix Text File where the fields are delimited by one NewLine
"chr(10)" and the records delimited by two NewLines "chr(10)".

I tried to use getToken to get the first record, but all I getting it
the first field in the first record.

<cfset record = getToken(txtVar, 1, "#chr(10)##chr(10)#">

My file would look something like this:

<!--- Start of File --->
FirstName: Troy
LastName: Simpson
Phone: 919-555-1212

FirstName: Tom
LastName: Hanks
Phone: 919-555-1313
<!--- End of File --->

Why does this not work?
Any ideas how I can do this?

Thanks,
Troy


[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to