FREE TUTORIALS ON C programming

Saturday, January 25, 2014

#include <stdio.h>
#include <stdlib.h>


int main()

{


FILE *fp;

fpos_t pos;

char c;

char d;

fp = fopen("test.txt","r");

if(fp == NULL)
{
perror("");
exit(1);
}

//c = fgetc(fp);

    //d = fgetc(fp);

fgetpos(fp,&pos);



printf("%c \n",c);

// printf("%c \n",d);

printf("%d",pos);

getchar();

return 0;

}
11:52 PM   Posted by Unknown with No comments

0 comments:

Post a Comment

Bookmark Us

Delicious Digg Facebook Favorites More Stumbleupon Twitter

Search