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

converting text files into html ones

Status
Not open for further replies.

FSonaglioni

Programmer
Jul 11, 2000
13
AR
Hi everybody!!<br>Does anybody know , how could i&nbsp;&nbsp;convert text files , or *.doc&nbsp;&nbsp;to an html file using some coldfusion tag ?<br><br>I use this code : <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;cffile action=&quot;WRITE&quot;<br> file=&quot;d:\temp\comunicado_escrito.txt&quot;<br> output=&quot;#form.comunicado_escrito#&quot; &gt;<br><br>but i need to find&nbsp;&nbsp;the way to convert this *.txt into html<br><br>Thanks in advance!!!<br>
 
CFFILE has a rename attribute, so you can rename the file to .HTML<br><br>If you are trying to create an HTML file, then you cannot make HTML tags from nowhere. If the file contains only text then it will output only text.<br><br> <p>Russ Michaels<br><a href=mailto:russ@satachi.com>russ@satachi.com</a><br><a href= Internet Development</a><br>For my personal book recommendations visit <br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top