Module 01-17 File I/O: Writing Flashcards
1
Q
Method: Does the file or directory exist? (Boolean)
A
exists()
2
Q
Method: Does the path point to a directory? (Boolean)
A
isDirectory()
3
Q
Method: Does the path point to a file? (Boolean)
A
isFile()
4
Q
Method: Returns the name of the file or directory
A
getName()
5
Q
Method: Returns the absolute path of the file or directory
A
getAbsolutePath()
6
Q
Method: Creates a new directory in the specified location
A
mkdir()
7
Q
Method: Creates a new file in the specified location
A
createNewFile()