Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unix file-- reading in

Status
Not open for further replies.

gwood

ISP
Jan 4, 2001
6
JP
Hi,
I have a file that comes in via ftp that has carriage returns and line feeds all through it. What im trying to do is read itin through CFFILE into a variable and displaying it.
What is happening is that the output is all in one continuous stream.
Is there a way to have it recognise the CR LF.. all they look like in notepad when opened are Black rectangles

Any help appreciated

Thanks
Greg
 
Try using the CF function StripCR, like this:

<pre>#StripCF(Whatever_Variable)#</pre>

Ryan ;-]
 
If you want it to display in html the same as it does in Notepad, you can use the replace() function to change all of the #chr(13)##chr(10)# sequences into &quot;<br>&quot;s.

GJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top