Hello,
I am a windows developer, but I need to get my program to be compatible on multiple platforms.
In windows, I usually save and create directories in AppData. Where is the best place to do so on a mac?
Also, I am use to creating a new directory, then the file using
Please do not take this code as literal. There is a lot more implemented, I am just shorthanding this.
Is this the proper way to do so on the OSX platform ?
Thanks much,
Daniel
I am a windows developer, but I need to get my program to be compatible on multiple platforms.
In windows, I usually save and create directories in AppData. Where is the best place to do so on a mac?
Also, I am use to creating a new directory, then the file using
Code:
File file = new File(System.getenv("APPDATA") + "/Test");
file.mkdirs();
File file2 = new File(System.getenv("APPDATA") + "/Test/test.txt");
file.createNewFile();
Is this the proper way to do so on the OSX platform ?
Thanks much,
Daniel
Last edited: