semicolon is there in my original code, compiler compiles everything fine. it just doesn't print the string. for loop isnt working, it should work with or without \n in printf which is just to test if it stored anything in the string. so the way it looks, i mean logically it should work, right? im just not too sure if i constructed the for loop correctly. ok here is what i have in my actual code.
Code:
char str_out[10][40];
if((file_01 = fopen("test_01.txt", "r")) == NULL) {
printf("Can't open file");
exit(1);
}
while ( (c=getc(file_01))!=EOF )
for(i=0; i<8; i++){
fscanf(file_01, "%s\n", str_out[i]);
printf("%s\n",str_out[i]);}
printf("plz be gentle with me, im still learning");