Skip to main content
5 events
when toggle format what by license comment
May 13, 2015 at 21:27 comment added Zgrkpnr Yes, Sir. Now that makes sense.Respect to experience.
May 13, 2015 at 21:26 vote accept Zgrkpnr
May 13, 2015 at 21:13 comment added tcrosley From your example, it looks like the final termination is '\r' '\n' '\r' which means you would get an empty string after the second '\r'. If that is always the case, then you could just gather strings together using my code, and then when you have an empty string consider that you are done. If you have no consistent structure in the data, then you will need some sort of other context to go by. Other than the above sequence, I have no more idea of "when the data ends" than you do.
May 13, 2015 at 21:02 comment added Zgrkpnr You are absolutely right, Sir. This is what I would do normally, but the point is that my strings includes carriage return and line feed not only at the and but also in the middle.
May 13, 2015 at 20:57 history answered tcrosley CC BY-SA 3.0