Anyone wanna help me learn Python?
Today, an opportunity presented itself for me to write what I assumed would be a quick little script, yet it has turned into a few hours of frustration. This is something I used to be able to do in Basic/VB in a few minutes, but I can't even get Python to open a file.
What I've got: large plain txt document space delimited
What I need: Import the text, line for line, and output to another file with HTML tags.
Simple, right? I understand the theory of how to do this, but can't get it to work.
Open the original file as read. Open the output file as append. I can't even get past that basic concept.
Then, for loop for each line of original? make string variable for line w.write to output file with my HTML code and text from original file?
I believe I'm on the right track, but have no idea how to write this dang thing. Documentation isn't helping as I can't even seem to get the dang open command to work.
Any help?