Can anyone advise a problem that bothered me? I have a Java.jar file that returns a string from a method composed as follows:
integer integer integer block_of_text
These are three integers that can be positive or negative, each of which is separated by single spaces, and then another space in front of a block of text, which can consist of any characters, but should not contain a carriage return. Now I suppose I can read the substring before the space character for each of the starting integers, and then just read the remaining text at a time.
I must add that the block of text should not be broken, no matter what it contains.
But can anyone suggest a better alternative?
Thanks to the respondents. It saved me a headache!
source
share