Suppose I have a messy text file like the following for example
Today is a good day, but I feel very tired. It seems like it is going to rain pretty soon.
scan can do this.
scan( file="myfile.txt", what=character() )