import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.Scanner;
public class hello {
public static void main(String[] args) {
try {
FileReader fin = new FileReader("c:\\windows\\system.ini");
Scanner scn = new Scanner(fin);
while (scn.hasNext()) {
String tmp = scn.nextLine();
System.out.println(tmp);
}
fin.close();
scn.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
how can i print c:\windows\system.ini (path? file?name). Is there any way to print the path?