in reply to Flat file in an array.

Which part of the process is giving you trouble? You need to open a file, probably loop over the readline operator with a while loop, and likely split on whitespace into an array. Eventually you need to print the results.