I have a code which suppose to read an integer from a file. But its actually reading as an character. Suggest me some modification where I can read the integers into an array.
fptr =fopen("path","r");
while(1)
{
c=getc(fptr);
putchar(c);
if (c==EOF)
exit(1);
}
Thanks in advance
Amit