Pointer auf Textdokument erzeugt
This commit is contained in:
parent
684ed5e821
commit
3c89c51854
@ -8,5 +8,11 @@
|
|||||||
// Read words from file and store in 'words' array
|
// Read words from file and store in 'words' array
|
||||||
int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
|
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
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user