exercise 17, opening files and writing to them, using the ARGV parameters passed as file names