1<open file>
2while(fgets(<char array>, <size of array>, <file pointer>) != null)
1char str[20]; //declare string of 20
2fgets(str, 20, stdin); // read from stdin
3puts(str); // print read content out to stdout
4
5
1FILE* fp;
2// if file is 50 bytes long:
3fseek(fp, /* from the end */ 23, SEEK_END); // <- at 50 - 23 so 27
4fseek(fp, /* from the start */ 23, SEEK_SET); // 23
5fseek(fp, /* from the the current (see ftell) */ 10, SEEK_CUR); // 33