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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to save HTML to plain text file?

Status
Not open for further replies.

viapangea

Technical User
Joined
Nov 26, 2001
Messages
1
Location
US
I have multiple queries and html in a .cfm file. I want to save the query output along the the HTML formatted display to a flat text file. (example: as the browsers save as text options does.) I've tried using the Custum Tag (FileWriteText from Macromedia " however I keep getting

Error Diagnostic Information
Error Occurred in CF_FileWriteText Tag.
The FILE attribute is required.

The File attribute in my CF_FileWriteText looks fine. Is there any other way to get the same results.
 
<CFFILE Action=&quot;Append&quot; File=&quot;#ExandPath(&quot;writehere.txt&quot;)#&quot; output=&quot;Bla de Blah!&quot;>

Try that...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top