this version currently doesn't handle multiple words correctly or spaces. I'm going to switch it up and use gets instead of fgetc.
final version works as specified in assignment