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

Component for HTML\text conversion

Status
Not open for further replies.

cyprus106

Programmer
Apr 30, 2001
654
I need to find a good, (emphasis on good...) component for converting text files to HTML. I've searched a few places, but none of them had even decent components for this task. Anyone know of anything? Cyprus
 
Look at the structure of a basic html file.
most of it is basic and can be loaded into an array
of strings. you will write the start of the html
file and when you come to the part were the text is
translated all you have to do is use strcpy and strcat
to add the proper code to the beginning and end of each line of text. then you go back to your string array and add the final lines to wrap up the end of the html.


write_header ();
write_text ();
write_tail ();

this is how I would do it. I actually have something like this in my schedule for coding later, Its for my wife who is the html wizard. email me in a month or so and I might have some code.

tomcruz@ev1.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top