open file passed by commandline argument