osremove.lua 198 B

123456
  1. print("creating an empty document named 1.txt, copying it as 2.txt, deleting 1.txt, and closing this example")
  2. os.execute("echo \"!\" > 1.txt")
  3. os.execute("cp 1.txt 2.txt")
  4. os.remove("1.txt")