text: from sys import argv
  
  script, filename = argv
  
  print(f"We're going to erase {filename}.")
  print("If you don't want that, hit CTRL-C(^C).")
  print("If you do want that, hit RETURN.")
  
  input("?")
  
  print("Opening the file...")
  target = open(filename, 'w')
  
  print("Truncating the file. Goodbye!")
  
  line1 = input("line 1: ")
  line2 = input("line 2: ")
  line3 = input("line 3: ")
  
  print("I'm going to write these to the file.")
  
  endl = "\n"
  target.write(line1 + endl + line2 + endl + line3 + endl)
  
  print("And finally, we close it.")
  target.close()
  