take input file as an argument

take input file as an argument