package fileinput;
import java.io.*;
/**
*
* @autho
*/
public class Main {
public Main () {
}
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
try
{
FileInputStream fstream =
new FileInputStream("data.txt");
DataInputStream in = new DataInputStream(fstream);
BufferedReader br = new BufferedReader(new InputStreamReader(in));
String strLine;
while((strLine = br.readline()) != null)
{
System.out.println(strLine);
}
in.close();
}
catch(Exception e)
{
System.err.println("Error:" + e.getMessage() );
}
}
}