console app should take a file name