How to clean text files
If a file is not well processed or if you obtain some error messages, this can be due to:
1- invisible characters such as: space, tabulation, carriage return, newline.
2- special characters. For example / or \ in a file name are responsible for errors because these characters indicate a path. So avoid special characters as much as possible.
Some windows software (like the notepad) add carriage return at the end of the lines. This invisible character can be a problem for some computation. You can clean your text files efficiently using the search replace word program. To remove carriage return, replace: \r with:(nothing).