GeSHi (java):
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
/*--------------------------------------------------------------------------
//Author List:
// deAppel <Creator>
//
//Description:
// Read a file on disk and output it in the console.
//
//Environment:
// This software was developed using Eclipse and Java 1.6
//
//Copyright Information:
// Copyright (C) 2007 <Institution><None>
// Ark de Appel www.engineeringserver.com
//
//----------------------------------------------------------------------*/
public class ReadFile {
public static void main
(String[] args
) { ReadFile rf = new ReadFile();
rf.ReadFile();
}
public void ReadFile(){
try {
tmp = br.readLine(); // read first line of file.
while(tmp != null){ // read a line until end of file.
System.
out.
println("" + tmp
);
// system out before tmp = br.readLine(); tmp = br.readLine();
}
br.close();
// TODO Auto-generated catch block
e.printStackTrace();
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
Created by GeSHI 1.0.7.20