Logo 
Search:

C Programming Articles

Submit Article
Home » Articles » C Programming » Parallel Processing ProgramsRSS Feeds

Program of FSEEK

Posted By: Joseph Evans     Category: C Programming     Views: 9953

Write a program of FSEEK.

Code for Program of FSEEK in C Programming

#include <stdio.h>

long filesize(FILE *stream);

int main(void)
{
   FILE *stream;
          char c;          int i=0;
   stream = fopen("MYFILE.TXT", "r");
    while(feof(stream)==0)
    {
        fseek(stream,i,0);
        i+=5;
        c=getc(stream);
        printf("%c\n",c);
    }
   fclose(stream);
   return 0;
}
  
Share: 


Didn't find what you were looking for? Find more on Program of FSEEK Or get search suggestion and latest updates.

Joseph Evans
Joseph Evans author of Program of FSEEK is from London, United Kingdom.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!