Fix and use FileArgument class.  Add test for unwritable outfile.