File.listRoots(); // TESTING FILE SERIALIZATION // Looks like we need a PMSDFile subclass of File that separates the PMSD // root directory from the relative path between the PMSD root directory and // the actual file location. The relative path is unchanged (except for the // tilt of the separators, which File handles) between platforms, the PMSD // root directory will change between platforms and machines and so will need // to be transient and initialized by based on the selected PMSD File f = new File("D:\\sticksync.foo"); File h = new File("MultiJava-Beagle"); ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(f)); out.writeObject(h); out.close(); File f = new File("D:\\sticksync.foo"); ObjectInputStream in = new ObjectInputStream(new FileInputStream(f)); File g = (File) in.readObject(); in.close(); System.out.println(g.getPath()); System.out.println(g.getAbsolutePath());