Input/Output Learning Mode

How would you efficiently extract data from a csv file which is several gigabytes in size?