You can't use just "0" as a delimiter: you have numbers with zeros in your data, zeros in them will be interpreted as a delimiter. So you need to use a more complex delimiter, perhaps a symbol that is never used at all in the data.

If you want to do that without regex, one possible way may be to loop through every symbol of the read data, to remember indices of the delimiters (maybe, in an array). Then you loop through indices and read data segments between two adjacent indices.

--- Update ---

You can't use just "0" as a delimiter: you have numbers with zeros in your data, zeros in them will be interpreted as a delimiter. So you need to use a more complex delimiter, perhaps a symbol that is never used at all in the data.

If you want to do that without regex, one possible way may be to loop through every symbol of the read data, to remember indices of the delimiters (maybe, in an array). Then you loop through indices and read data segments between two adjacent indices.