|
|
@ -73,12 +73,7 @@ void printInit() |
|
|
|
size_t len = 0; |
|
|
|
ssize_t read; |
|
|
|
|
|
|
|
stream = fopen(gameInstructionsFile, "r"); |
|
|
|
if (stream == NULL) |
|
|
|
{ |
|
|
|
printf("ERROR: couldn't open or find file: INSTRUCTIONS !\n"); |
|
|
|
exit(EXIT_FAILURE); // exit |
|
|
|
} |
|
|
|
stream = getStream(gameInstructionsFile); |
|
|
|
|
|
|
|
/* print line by line from file */ |
|
|
|
while ((read = getline(&line, &len, stream)) != -1) |
|
|
|