Saturday, 11 February 2012

Program Of FTELL In C


#include <stdio.h>
#include<conio.h>
main ()
{
  long size;
  pFile = fopen ("z123Exam.txt","w");
  fseek (pFile, 100, SEEK_END);
  size=ftell (pFile);
   fclose (pFile);
   printf ("Size of myfile.txt: %ld bytes.\n",size);

  getch();
}

No comments:

Post a Comment