How to read text file by replacing a character as line break
I have a text file which I can import (read) if it is presented as separate lines. However sometimes I get the file with all the lines next to each other as if there is no line break. So the Line Read and While Not EOF command reads it as a single line whereas there may have been over 10,000 lines. I noticed that if I open this file in notepad it shows it as a single line without any breaks (but with a small box after each line which should have been a line break) but if I open it in TextPad it shows all the separate lines.
Now, since I may get both types of files, I need the application to be able to:
1. check if they are separate lines or a single line
2. break the Line Read text into separte lines and then process further.
I am attaching 2 separate attachments (withoutbreak.txt and withbreak.txt). Both these files look identical in TextPad but different if opened in notepad. A "*" is what should indicate end of line, so if you can guide me how to use it to indicate a line break and still continue with While Not EOF and Line Read to read the lines as separate lines, it'd be great!