Reply To: Java I/O

Home Forums General Chat Java I/O Reply To: Java I/O

#21070
DarkDragoon
Participant

lolwut, what I use for general all purpose filereading etc.


import java.io.*;
//you know where that goes.


void classThatReadsShitorEtc() throws IOException{
//read that stuff in
BufferedReader file=new BufferedReader(new FileReader(" ")); //file name goes inside the quotes
file.readLine(); //and etc.
//Print shit out
PrintWriter outFile=new PrintWriter(new BufferedWriter(new FileWriter(" "))); //file name goes inside the quotes
out.print("stuff");
out.close();
}

Yarr, might not be what you want though