From 3c89c51854f1d67b32ae2b4179caad97d6d968b8 Mon Sep 17 00:00:00 2001 From: Bastian Date: Wed, 22 Oct 2025 15:07:46 +0200 Subject: [PATCH] Pointer auf Textdokument erzeugt --- Start_Windows/input.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Start_Windows/input.c b/Start_Windows/input.c index ed77805..c765bb9 100644 --- a/Start_Windows/input.c +++ b/Start_Windows/input.c @@ -8,5 +8,11 @@ // Read words from file and store in 'words' array int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount) { + //Erstellt Pointer auf textdokument + FILE *textdokument = fopen("words.txt", "r"); + if (file == NULL) { + printf("words,txt konnte nicht geoffnet werden"); + } + // ToDo 2D char Array um wörter zu speichern } \ No newline at end of file