read input file from command line argument