Tuesday, 20 August 2013

Will a file be created if the directory doesnt exist?

Will a file be created if the directory doesnt exist?

Well my question is that if say I'm making a file like so
File f = new File("THE_Folder/me.txt");
But the folder "THE_Folder" doesnt exist, will the file still be created
in the end when I'm saving the file? Will it create "THE_Folder" and the
"me.txt"?

No comments:

Post a Comment