Spilt input file and print to console