File Handling Flashcards
1
Q
How to write to a file called name
A
names_file.write(x)
2
Q
How to create and open a file called people
A
file = open(“people.txt”,”a”)
3
Q
How to close a file called names
A
names_file.close()