How do I read in text from a file into an array I have tried the following:
but this doesn't seem to work, I want to read in from the a file with file pointer ffp, into array phrase.
I also tried to do it the following way:
This won't work though as I'm only reading a character, how do I get it to take more than a character?? Any help please!
Code:
while(fgets(phrase, 100, ffp))
I also tried to do it the following way:
Code:
int status = fscanf(ffp, "%c", phrase);
while(status != EOF)