Is there a way to read a .doc file, which has rich text format, and write the content in an html file? I have tried to read a .txt file and wrote the content in html with this code.
<CFFILE ACTION="Read"
FILE="C:\CFusionMX\ VARIABLE="Message">
<CFOUTPUT>#Message#</CFOUTPUT>
It works but it didn't detect line breaks, paragraphs. Everything was one bit block of text. Is there a way to detect the a line breaks and add <br> tags or even detect bolded types and add <b></b> to that text? I'm new to Coldfusion by the way. The reason i'm asking is I have to do a site for a client. They don't do html stuff so if they had the updates of the sites content in a .doc file, they would just have to put the file in a folder and it would update itself. I don't see any way of doing this but I'm just asking to make sure. Do any of you have any suggestions to have my clients update the site without using Dreamweaver or knowing HTML?
Thanks,
Joël
<CFFILE ACTION="Read"
FILE="C:\CFusionMX\ VARIABLE="Message">
<CFOUTPUT>#Message#</CFOUTPUT>
It works but it didn't detect line breaks, paragraphs. Everything was one bit block of text. Is there a way to detect the a line breaks and add <br> tags or even detect bolded types and add <b></b> to that text? I'm new to Coldfusion by the way. The reason i'm asking is I have to do a site for a client. They don't do html stuff so if they had the updates of the sites content in a .doc file, they would just have to put the file in a folder and it would update itself. I don't see any way of doing this but I'm just asking to make sure. Do any of you have any suggestions to have my clients update the site without using Dreamweaver or knowing HTML?
Thanks,
Joël