SAP interview question

Read in a textfile containing single digit numbers and convert it into an integer array.