Hi When i run this code in JCreator and compile it ir comes up process complete but when i run it I get an exception in main error Why???
import java.io.*;
public class ReadTxtFile
{
public static void main(String args[]) throws Exception
{
BufferedReader br = new BufferedReader(
new FileReader("tes t.txt"));
String s;
while (br.ready())
{
s=br.readLine() ;
System.out.prin tln("The content is "+s);
}
}
}
import java.io.*;
public class ReadTxtFile
{
public static void main(String args[]) throws Exception
{
BufferedReader br = new BufferedReader(
new FileReader("tes t.txt"));
String s;
while (br.ready())
{
s=br.readLine() ;
System.out.prin tln("The content is "+s);
}
}
}
Comment