How to remove a string from a txt file?

Spencer Du spencerdu at hotmail.co.uk
Wed Sep 4 11:08:06 EDT 2019


Hi

I want to remove a string from a txt file and then print out what I have removed. How do I do this.

The txt file is in this format and should be kept in this format.

txt.txt:
laser,cameras,

Thanks



More information about the Python-list mailing list