if am having a file , in that the contents is :
iam a citizen of india
my name is indian
iam a perfect human being.
I THINK , THIS U DON'T KNOW HOW TO STORE IN AN ARRAY ?? isn't!
Code:
#include<stdio.h>
#include<conio.h>
void main()
{
FILE *pointer;
char ch1[50];
int i=0;
pointer=fopen("srv.txt","r");
while(1)
{
   ch1[i]=fgetc(pointer);
       if(!(ch1[i]^EOF))
       break;
i++;
}
ch1[i]='\0';
for(i=0;ch1[i]!='\0';i++)
printf("%c",ch[i]);
getch();
}
hope this will work and you could easily understand.......

Last edited by shabbir; 6Oct2009 at 20:24.. Reason: Code blocks