Warning: implode(): Invalid arguments passed in /www/wwwroot/jobquiz.info/mdiscuss.php on line 336 ftell() returns the current position of the pointer in a file stream. ?->(Show Answer!)
1. ftell() returns the current position of the pointer in a file stream.
Ask Your Doubts Here
Comments
By: guest on 01 Jun 2017 06.02 pm
The ftell() function shall obtain the current value of the file-position indicator for the stream pointed to by stream. Example: #include <stdio.h> int main(void) { FILE *stream; stream = fopen("MYFILE.TXT", "w+"); fprintf(stream, "This is a test"); printf("The file pointer is at byte %ld\n", ftell(stream)); fclose(stream); return 0; }