in reply to Re: How can I read a line of text from a file into an array?
in thread How can I read a line of text from a file into an array?

This code makes unnecessary use of an anonymous array making handling of the returned values more involved than necessary. It also retains the single-quotes in the data resulting in this set of values:
'key1 value1' 'key2 value2' 'key3 value3' 'key4 value4'