/**
*
* @author Subhani.s
*/
import java.io.*;
public class FileRead
{
public static void main(String args[]) throws FileNotFoundException, IOException
{
File f = new File("D:\\a.txt");
FileReader fr = new FileReader(f);
// FileInputStream fin = new FileInputStream(f);
// DataInputStream din = new DataInputStream(fin);
BufferedReader br = new BufferedReader(fr);
// BufferedReader br = new BufferedReader(new InputStreamReader(din));
String s;
while((s = br.readLine()) !=null)
{
System.out.println(s);
}
// din.close();
}
}
*
* @author Subhani.s
*/
import java.io.*;
public class FileRead
{
public static void main(String args[]) throws FileNotFoundException, IOException
{
File f = new File("D:\\a.txt");
FileReader fr = new FileReader(f);
// FileInputStream fin = new FileInputStream(f);
// DataInputStream din = new DataInputStream(fin);
BufferedReader br = new BufferedReader(fr);
// BufferedReader br = new BufferedReader(new InputStreamReader(din));
String s;
while((s = br.readLine()) !=null)
{
System.out.println(s);
}
// din.close();
}
}
No comments:
Post a Comment