Skip to content
Advertisement

Tag: fileinputstream

Python Using Fileinput to Replace Words

I am using Python 2.7 with MAC OS X and wrote a program to replace a word in a file with another word. Any time that word shows up in that file I want it replaced with another word that the user specifies. It seems to be working but it seems to be outputting a couple extra lines on the

Advertisement