Text file can conain one or three integer values in string. How correctly and simplicity read this string?