#include <stdio.h> #include <stdlib.h> #define BUFSIZE 256 int main() { char buf[BUFSIZE]; FILE * fp = fopen("/home/input.in", "r"); fgets( buf, BUFSIZE, fp); printf("read line: %s", buf); fclose(fp); return 0; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)