Reading in a file word by word
I am trying to write a program that reads a file name from the
command line, reads the contents of that file, and output a list of words, one word per line, to a second file, whose name is also on the command line.
For this program a word is a sequence of alphabetic characters. Any character which is not alphabetic is a separator character.
I know how to open files and create files but I am not sure what to do so that I can read in just one word at a time. I also want to know of any tips on how to write to the new file. Thank you in advance for any help!
Hello%$this is just a test!