I have a simple question concerning the File class. In an example I saw:
File path = new File(".");
I don’t understand what “.” means. To what directory does it refer?
I have a simple question concerning the File class. In an example I saw:
Share
".", in the context of the file system, in almost all languages refers to the current working directory.new File(".");means, “Give me a file object which is referencing the directory that this application is currently working in.” This is generally, but not always, the directory the application was called from.