Handle file input and break into main.c