PrintWriter out = new PrintWriter( new OutputStreamWriter( new FileOutputStream( filename ) ) ); // a byte streamor
PrintWriter out = new PrintWriter( new FileWriter( filename ) ); // a character stream
BufferedWriter out = new BufferedWriter( new OutputStreamWriter( new FileOutputStream( filename ) ) ); // a byte streamor
BufferedWriter out = new BufferedWriter( new FileWriter( filename ) ); // a character stream
RandomAccessFile in = new RandomAccessFile( filename, "r" );
BufferedReader in = new BufferedReader( new InputStreamReader( new FileInputStream( filename ) ) ); // a byte streamor
BufferedReader in = new BufferedReader( new FileReader( filename ) ); // a character stream
DataOutputStream out = new DataOutputStream( new FileOutputStream( filename ) ); // a byte stream
BufferedOutputStream out = new BufferedOutputStream( new FileOutputStream( filename ) ); // a byte stream
DataInputStream in = new DataInputStream( new FileInputStream( filename ) ); // a byte stream
BufferedInputStream in = new BufferedInputStream( new FileInputStream( filename ) ); // a byte stream