Read existing text file, scan, and output new file.