ফাইলে লেখা
file_to_work = open("Test.txt", "w")
file_to_work.write("I am writing!!!")
file_to_work.close()
file_to_work = open("Test.txt", "r")
print(file_to_work.read())
file_to_work.close()I am writing!!!file_to_work = open("Test.txt", "w")
is_writing_done = file_to_work.write("I am writing!!!")
if is_writing_done:
print("Yes, {0} byte(s) has been written!".format(is_writing_done))
file_to_work.close()Last updated