in reply to Break continuous lines of a text file based on character lengths
Hi,
Even though the file isn't supposed to have new lines in it, I would still check for the newline character and strip it if it is present. Why? You might run across a file (I'm assuming you're going to run this on multiple files or more than just once) that contains a new line character and you might end up with lines of 105 characters, then 5 character line, then 105 characters. It would break your requirement of 105 character lines.
hope this helps
Jason L. Froebe
No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1
|
|---|