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.
You can use readLines function.
readLines