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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.