So, I am writing a Java application that uses Simple to store data as an xml file, but it is very slow with large files when it is stored on a network drive compared to a local hard drive. Therefore, I would like to save it locally before copying it to the desired destination.
Is there any smart way to find temporary local file storage in Java in a system-independent way?
eg. something that returns something like c:/temp on windows, /tmp on linux, as well as for other platforms (such as mac). I could use the application path, but the problem is that the Java application also starts from a network drive.
java file-io
Spike
source share