I\'m reading in a file and after reading in a number, I want to skip to remaining part of that line. An example of a file is this
2 This part should be skipp
#include int main(){ FILE *f = fopen("data.txt", "r"); int n, stat; do{ if(1==(stat=fscanf(f, "%d", &n))){ printf("n=%d\n", n); } }while(EOF!=fscanf(f, "%*[^\n]")); fclose(f); return 0; }