Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- String sFichero = "c:\M6UF1EAC1.txt";
- File f = new File(sFichero);
- if (!f.exists()){
- File[] ficheros2=new File(".").listFiles(new FileFilter() {
- public boolean accept(File fichero2) {
- return fichero2.isFile() && !fichero2.isHidden() ;
- }
- });
- for(File fichero :ficheros2) {
- System.out.print( ficheros2.length+ " ");
- System.out.print(fichero.getName()+" ");
- System.out.println(fichero.getAbsoluteFile()) ;
- }
- } else{
- System.out.println("No existe");
- }}
- catch(Exception e) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement