Read a file and output to a new file... plz help
Posted on 2000-03-15
here's a cut/paste of my code:
print OUT "@lines";
*The problem is I want it to print out each line with extra characters but it is messing up... I can't figure out why. ex:
print OUT "a @lines b";
would give someting like this in the text file:
ab blah <which is a line in the txt file.
What I'm trying to do is open a input txt file and read that file then write each line to a new file that will add extra words that I place in such as <a href=\"@lines"\>@lines</a> to make each line a URL but it is messing up.
If you can change my code around to make this work or re-write it entirely, please do. I need an answer ASAP! thank you!