Browse Source

perfecto

master
kevin 2 years ago
parent
commit
72c1cea8b6
2 changed files with 0 additions and 17 deletions
  1. BIN
      bin/dam/daw/com/es/HolaFichero.class
  2. +0
    -17
      src/dam/daw/com/es/HolaFichero.java

BIN
bin/dam/daw/com/es/HolaFichero.class View File


+ 0
- 17
src/dam/daw/com/es/HolaFichero.java View File

@ -40,24 +40,7 @@ public class HolaFichero {
if (!fwindows.exists()) { if (!fwindows.exists()) {
fwindows.createNewFile(); fwindows.createNewFile();
} }
System.out.println("Fichero creado en Windows."); System.out.println("Fichero creado en Windows.");
// check if the fwindows exists
boolean exists = fwindows.exists();
if(exists == true)
{
// printing the permissions associated with the file
System.out.println("Executable: " + fwindows.canExecute());
System.out.println("Readable: " + fwindows.canRead());
System.out.println("Writable: "+ fwindows.canWrite());
}
else
{
System.out.println("File not found.");
}
} }
public void CreoFicheroLinux() throws IOException { public void CreoFicheroLinux() throws IOException {


Loading…
Cancel
Save