~~File I/O~~ - file input/output in Java is fairly similar to other input and output we've been exposed to - to write to a file we do something along the lines of System.out - make a new PrintWriter: PrintWriter pw = new PrintWriter( filename_as_a_string ) ; - to write: pw.println( some_string ) ; [ or pw.print( some_string ) if you don't want a new line automatically inserted] - close the file: pw.close( ) ; - to read is more complicated - make a FileReader and Scanner: FileReader f = new FileReader( filename_as_string ) ; Scanner in = new Scanner( in ) ; - to read you must have a String variable available: String line ; line = in.nextLine( ) ; - if your data is not a String--for example some sort of numeric type--you must parse it to the proper type int x = Integer.parseInt( line ) ; // or Double.parseDouble( ) if of double type - close the scanner then file: in.close( ) ; f.close( ) ; - see the example java project for more information