import java.io.*;
public class main{
public static void main(String[] args)
throws IOException
{
FileReader file =new FileReader("C:\\a.txt");
BufferedReader fileInput = new BufferedReader (file);
for( int counter=0;counter<3;counter++) System.out.println(fileInput.readline());
fileInput.close();
}
}
what is the error in this program
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Thomas
25 February, 15:56
you have a typo in readLine()
0