Originally Posted by Bomyne
I'm no Java programer but I was under the impression that Java accounted for that directory thing.
|
Well perhaps... I did not have time when I needed a cross platform implementation in one of my recent school projects, I needed to put something in the %TMP% folder in windows... but I also needed to make it possible on macs and *nix... So I made a small class to act as a OS checker... It's possible however that the Java API provides an abstract class to do the same thing...
(sometimes libraries uses OS specific implementations that further reduce the ability to do cross-platform... unless you create an abstract layer to allow a more OS specific implementations but then you will need to use libraries for the other OSes...).