title: Finding temporary file storage in Java
body: <p>So I'm writing a Java application that uses <a href="http://simple.sourceforge.net/" rel="noreferrer">Simple</a> to store data as xml file, but it is hellishly slow with big files when it stores on a network drive compared to on a local hard drive. So I'd like to store it locally before copying it over to the desired destination.</p>
  
  <p><strong>Is there some smart way to find a temporary local file storage in Java in a system independent way?</strong> </p>
  
  <p>E.g. something that returns something such as <code>c:/temp</code> in windows, <code>/tmp</code> in linux, and likewise for other platforms (such as mac). I could use application path but the problem is that the Java application is run from the network drive as well.</p>