Browse Source

que bien

master
Yaroslav 2 years ago
parent
commit
1905206e2e
2 changed files with 6 additions and 1 deletions
  1. BIN
      bin/yaros/HolaFichero/HolaFichero.class
  2. +6
    -1
      src/yaros/HolaFichero/HolaFichero.java

BIN
bin/yaros/HolaFichero/HolaFichero.class View File


+ 6
- 1
src/yaros/HolaFichero/HolaFichero.java View File

@ -22,6 +22,11 @@ public class HolaFichero {
if (so.charAt(0)==Windows) {
System.out.print("Windows -> ");
Sis=Windows;
try {
new HolaFichero().CreoFicheroWindows();
}catch(IOException e) {
System.out.print("Error");
}
}
else {
System.out.print("Linux -> ");
@ -32,7 +37,7 @@ public class HolaFichero {
public void CreoFicheroWindows() throws IOException {
System.out.println("Creando fichero en Windows ...");
File fwindows = new File("G:\\ADA\\T1.Ficheros\\CreoFicheroWindows.txt");
File fwindows = new File("C:\\Users\\yaros\\Documents\\Otros\\CreoFicheroWindows.txt");
if (!fwindows.exists()) {
fwindows.createNewFile();
}


Loading…
Cancel
Save