Help! I can't get this right ....
Posted on 1999-07-17
This may sound silly, but no matter what I try, I just can't get this right.
Here's my problem
My friend asked me to create a program that simply reads info from a text file and converts it to an index of links.
He has a txt file containing descriptions, type and url of hundreds of webpages and he wanted me to create a program that would open up the file and create one link from each 3 lines in the file.
This is the format of the file:
[Description of page1]
[Type of page1]
[URL of page1]
[Description of page2]
[Type of page2]
[URL of page2]
I have two richedit controls, one loads up the file
and the other one displays the file after conversion.
Then I have one button, and when I click it
the program has to add one line to richedit2 from
every three lines in richedit1, thus creating a link
with the description, type and url.
So, each line in richedit2 should look like this
<A HREF="[URL of page1]">[Description of page1], [Type of page1]</A>
Hope someone can show me how to do this!