#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
int main() {
const char* filename = "d:\\data.txt";
FILE *fp = fopen(filename, "r");
struct stat sb;
stat(filename, &sb);
char *file_content = malloc(sb.st_size);
while (fscanf(fp, "%[^\n ] ", file_content) != EOF) {
printf("%s\n", file_content);
}
fclose(fp);
free(file_content);
return 0;
}
/*
run
c
c++
C#
NODEjs
eXPRESS
jAVAsCRIPT
php
*/