ftell in C




File Operations in Tamil


C - ftell

  • "ftell" returns the current position for input or output on the file.
 c-fread

C Syntax

 offset = ftell( file pointer ); 

Example

#include<stdio.h>
#include<conio.h>
int main(void)
{
   FILE *stream;
   stream = fopen("one.txt", "w");
   fprintf(stream, "This is a test");
   printf("The file pointer is at byte %ld\n", ftell(stream));
   fclose(stream);
   getch();
   return 0;
}

Output

 c-ftell

Learn C - C tutorial - C ftell - C examples - C programs



View More Quick Examples


Related Searches to ftell in C

Adblocker detected! Please consider reading this notice.

We've detected that you are using AdBlock Plus or some other adblocking software which is preventing the page from fully loading.

We don't have any banner, Flash, animation, obnoxious sound, or popup ad. We do not implement these annoying types of ads!

We need money to operate the site, and almost all of it comes from our online advertising.

Please add wikitechy.com to your ad blocking whitelist or disable your adblocking software.

×