Open a text file and edit line items