Lord_WayneY
0
Q:

java open file

try{
  File f=new File("C:\\demo\\demofile.txt");
}catch(Exception e){
 	e.printStackStace(); 
}
2
import java.io.*;

public class openFile {

    public static void main(String[] args) {
        try{
            File file = new File("C:\\file.txt");
        }catch(Exception e){
            e.printStackTrace();
        }
    }
    
}
0

New to Communities?

Join the community