Created
July 9, 2020 08:16
-
-
Save BMU-Verlag/cba8a7cf70e84813a51bb28308ff5ef3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void dateiSchreiben(String inhalt, String dateiname){ | |
try{ | |
File datei =new File(dateiname); | |
datei.createNewFile(); | |
BufferedWriter bw = new BufferedWriter(new FileWriter(dateiname, true)); | |
bw.write(inhalt); | |
bw.close(); | |
} | |
catch(IOException ioAusnahme){ | |
System.out.println("Fehler beim Öffnen der Datei"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment