Helper to read input file and pass it to rework