java open the file code example
Example: open file java
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();
}
}
}