Auf Thema antworten

[CODE lang="java" title="code"]public class Save {


    public Save() throws IOException {

File localFile = new File("Save.txt");

        public static void create(File localFile) {

       

        File localfile = localFile;

       

       

       

       

        if(!localfile.exists()) {

       try {

        localfile.createNewFile();

    } catch (IOException e) {

       

        e.printStackTrace();

    }

           

            System.out.println("Neue Datei wurde Erstellt");

           

        }else {

            System.out.println("Datei exesitiert bereits");

        }

        }

    }[/CODE]

Fehlermeldung kann ich nicht sehen weil es eine jar datei am Desktop ist.  Es funktoniert ja eh bei mir



Oben