From f5337d419fc49043cb7323671f24249a54d3c1a5 Mon Sep 17 00:00:00 2001 From: Torsten Stock Date: Thu, 30 Oct 2025 17:06:13 +0100 Subject: [PATCH] Erster schnipsel --- Start_Windows/input.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Start_Windows/input.c b/Start_Windows/input.c index ab7f9d6..9b802e8 100644 --- a/Start_Windows/input.c +++ b/Start_Windows/input.c @@ -8,5 +8,7 @@ // Read words from file and store in 'words' array int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount) { -int a; + file = fopen("words.txt", "r"); //liest das doc ein + if (file == NULL) + return -1; } \ No newline at end of file