From e0e12ac0f1bd755cd4b56b49b2b14a9f5c59914f Mon Sep 17 00:00:00 2001 From: Marc Dimmerling Date: Fri, 9 Feb 2024 17:21:20 +0100 Subject: [PATCH] void_LoadNote --- src/main/java/Notizbuch.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/main/java/Notizbuch.java b/src/main/java/Notizbuch.java index 83510ee..8c467d2 100644 --- a/src/main/java/Notizbuch.java +++ b/src/main/java/Notizbuch.java @@ -58,6 +58,15 @@ public class Notizbuch extends JFrame implements ActionListener { } } private void loadNote() { - + try (BufferedReader reader = new BufferedReader(new FileReader("notizen.txt"))) { + StringBuilder noteText = new StringBuilder(); + String line; + while ((line = reader.readLine()) != null) { + + } + + } catch (IOException e) { + + } + } } -} \ No newline at end of file