how to read data from a csv file, and output desired columns