You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011
  1. import sys
  2. def write_file(file_name):
  3. with open(file_name, "w+") as f:
  4. f.write("Dummy text")
  5. if __name__ == "__main__":
  6. assert len(sys.argv) > 1
  7. write_file(sys.argv[1])