Module 2:File Handling Flashcards
1
Q
In file handling, the key function for working files in Python is the ______ function.
A
open ()
2
Q
File handling has several function for ______ , ______ , ______ and ______ files
A
creating
reading
updating
deleting
3
Q
Syntax:
File object= open(“filename”,”mod”)
______ : attribute of a file object tells you which mode a file was opened in.
A
mode
4
Q
Syntax:
File object= open(“filename”,”mod”)
______ : gives name of the file that the file object has opened. And you have to specify the exact location of your file.
A
filename