Quick actions

cmd+k|ctrl+k

Navigation

Languages

Open File

Snippet info

Language

C

Visibility

public

Author

blogeranto

Created

2016-06-01T09:43:01Z

Updated

2016-06-01T09:43:15Z

#include <stdio.h>
#include <stdlib.h>
#define N 4
int main(){
    char word[N];
    FILE*fp;
    fp=fopen("FILE.txt","r");
    if(fp==NULL){
        printf("Error open file\n");
        return -1;
    }
    while(fscanf(fp," %s",&word[N])!=EOF){
        printf(" %s",&word[N]);
}
    return 0;
}
INFO