reads the arguments script runs with into a file