Hi,
Here is a solution. I can write results to a txt file which is great. All I need to do now is read from a text which im guessing will just go in place of the 'test' section in the code and to be able to iterate this code so that I can run through a whole paragraph containing multiple <BACKSPACE> sections removing all (rather than getting to the first one and terminating.) Would you have any ideas looking at this to do such a thing?...
User Profile
Collapse
-
Hi there,
Im a little confused. Im not sure I understand the string replace method you mentioned at the end of your post.
cheers,
Joe...Leave a comment:
-
Text file manipulation.
Hi there, im trying to create a python program that can read a text file line by line and search for specified words/text/strings and remove them from the text file. Then finally save the modified text file to an output file. The only problem is, the text file contains code for a BACKSPACE typed in the text. e.g. "<BACKSPACE& gt;" this needs to be removed which sounds quite simple, but often there are numbers involved. e.g. "<BACKSP ACE:... -
Hi, im using Linux Fedora core 6, running Python 2.4.4 and using VI within a terminal or text editor.Leave a comment:
No activity results to display
Show More
Leave a comment: