repl.it
@ethanheys/

file stuff

Python

No description

fork
loading
Files
  • main.py
  • newfile.txt
main.py
1
2
3
4
5
6
7
import os
file = open("file.txt","x")
os.remove("file.txt") 
import os
if os.path.exists("file.txt")
else:
  print("This file does not exist")