I'm trying to write a prog that takes a file called censor.in with the 1st line containing the number of subsequent lines and outputting it into a file called censor.out with all the four-letter words *'ed out.
Following is how the input file would look:
The quick brown fox jumps over the lazy dog
Now is the time for all good people to come to the aid of the party
As you can see, I just take the integer out of the picture and deal with each of the words. I need a better way to determine when I new line begins though by counting the number of "str" values before a line break. In the example I just said "When there's a capital letter break to the next line" but names, etc. would mess that logic up. Any ideas? Thanks a lot.