Answers for "data file read python clear 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

Python Answers by Framework

Browse Popular Code Answers by Language