Browse Source

Todo Ok

master
Ivan Morell 2 years ago
parent
commit
f21206ad18
2 changed files with 5 additions and 1 deletions
  1. BIN
      bin/Package/HolaFichero.class
  2. +5
    -1
      src/Package/HolaFichero.java

BIN
bin/Package/HolaFichero.class View File


+ 5
- 1
src/Package/HolaFichero.java View File

@ -10,8 +10,12 @@ public class HolaFichero {
hf = new HolaFichero(); hf = new HolaFichero();
char Sistema=MiSistema(); char Sistema=MiSistema();
System.out.println(Sistema); System.out.println(Sistema);
String sis = Character.toString(Sistema);
try { try {
hf.CreoFicheroWindows();
if(sis.equals("W"))
hf.CreoFicheroWindows();
else
hf.CreoFicheroLinux();
} catch (IOException e) { } catch (IOException e) {
// TODO Auto-generated catch block // TODO Auto-generated catch block
e.printStackTrace(); e.printStackTrace();


Loading…
Cancel
Save