Parse input file and output as text