Monday, May 02, 2005

Some Patterns in Java Programming

Need to read the file line by line

1. Take filename
2. FileReader fr = new FileReader(filename);
3. BufferedReader br = new BufferedReader(fr);

String line = "";

while ( line = bufferedReafder.readLine() ) {

}

No comments: