in reply to Re^2: text to array
in thread text to array

Your mistake is that you do not tell us what you expect, and how your program fails to work for you.

Also, please show 10 lines of relevant input, and the corresponding output, together with what the output should be.