Here is the solution I came up with:
def save(what_to_write):
file = open("file_name.txt", "w")
write = file.writelines(what_to_write)
file.close()
file = open("file_name.txt")
cont = file.readline()
print (cont)
file.close()
Here is the solution I came up with:
def save(what_to_write):
file = open("file_name.txt", "w")
write = file.writelines(what_to_write)
file.close()
file = open("file_name.txt")
cont = file.readline()
print (cont)
file.close()
For further actions, you may consider blocking this person and/or reporting abuse
Alona Potapova -
Fupeng Wang -
Matan Shaviro -
pikoTutorial -
Top comments (1)
A pretty good answer I found