New to files in C, trying to read a file via fread
Here\'s the content of the file:
line1 how
Code used:
char c[6];
No. The fread function simply reads a number of elements, it has no notion of "strings".
fread
fgets
fscanf
Personally I would go with fgets.