 |
read file into array - C Board
How would I read each line and put them into array of char? I have the folloing but need some advice on how to do it, please. ... while(fgets(line, sizeof line, infile) != NULL && i < MAXLINE) { printf("%s\n", line); readline[i] = malloc(strlen(line)+
cboard.cprogramming.com |
 |