Added function readNumbersFromLine