I am generating a .txt file that gets emailed to the user.

A sample of the code doing this looks as follows:

<CFSET TxtFileContent = "
Line 1

Line 2

Line 3

">

When I open the generated txt file in a browser, or in CFStudio, the three
lines appear as they do above, properly line-fed.

However, if I open the email attachment .txt file in notepad, I get a string
of data, with squared interspersed, instead of looking properly formatted.

I have tried using the above CFSET method, and I've also tried using CHR(10)
CHR(13) characters to create the line feeds.  It still doesn't make the file
look right in notepad.

Can anyone tell me how to generate this text file so that it looks proper in
Notepad?

Thanks in advance for any help you can offer!

.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Marc Funaro, President
Advantex Technical Consulting Services
5547 State Highway 12
Norwich, NY 13815
Phone:  607-336-6895
Fax: 801-383-4864
Internet: http://www.advantex.net
Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to