Read a file (Textfile):
with open("filename") as file:
print(file.read())
Write a file:
with open("filename","w") as file:
file.write("Test")
Basics out of the way.
TODO append/replace/… seek binary
Read a file (Textfile):
with open("filename") as file:
print(file.read())
Write a file:
with open("filename","w") as file:
file.write("Test")
Basics out of the way.
TODO append/replace/… seek binary