Answers for "python remove all file"

0

python delete all data from file

file = open("sample.txt","r+")
file.truncate(0)
file.close()
Posted by: Guest on June-03-2020

Code answers related to "python remove all file"

Python Answers by Framework

Browse Popular Code Answers by Language