When I run the code I get the following error message:
java.io.FileNotFoundException: (The system cannot find the file specified)
import java.io.*;
public class readf {
public static void main(String[] args) throws IOException {
try {
BufferedReader reader = new BufferedReader(new
FileReader("C:/abc.txt"));
System.out.println(reader.readLine());
} catch (IOException e) {
System.out.println(e);
}
}
}
I am sure from this cases:
. file is existing.
.file is in the correct directory.
This post has been edited by ELTON: 30 October 2008 - 01:46 PM

New Topic/Question
Reply




MultiQuote





|