Open file While the file has lines, read a line of text. { Split the line of text into useful pieces. Save each corresponding field into your desired data structure (in this case, a hash). } print data (perhaps in another loop foreach of your keys)