import java.io.*;
public class ReadCharFile
{
	public static void main (String args[]) 
	{
  		try 
		{
			FileReader file = new FileReader ("ReadCharFile.java");
			BufferedReader buff = new BufferedReader (file) ;
			boolean eof = false;
			while (!eof) 
			{
				String line = buff.readLine();
				if (line==null)
					eof = true;
				else
					System.out.println(line);
			}
		}
		catch(IOException e) 
		{
			System.out.println("Error");
		}
	}
}

Click here to go back.

Our aim is to provide information to the knowledge seekers. 


comments powered by Disqus




Footer1