Changing input file to text