Hey everyone I'm working on a project for a class. I'm supposed to take a text file, open it, print it, and reopen it replacing every fifth word with a series of blanks. I can get the file to open and print the first time but after that, I am stuck.Heres the code I have so far.
That's the part that works. I'm working on just making it show the file again first, then worrying about counting the words and replacing them. I can't figure out how to do it thought. Any help is welcome