What ever could be the problem with it?
#include <stdio.h>
#include <string.h>
#define SIZE 19
void filePrint(char fileName[]);
int main (void)
{
char fileRead[SIZE];
filePrint(fileRead);
return 0;
}
void filePrint(char fileName[])
{
FILE *inp;
int input_status = 0;
char readFile[SIZE];
inp = fopen(fileName, "r");
printf("\nEnter a file to print:\n");
input_status = fscanf(inp, "%s", readFile);
while (input_status != EOF)
{
printf("%s\n", readFile);
input_status = fscanf(inp, "%s", readFile);
}
fclose(inp);
}