Hi; I want to add a string of numbers(e.g 9999) which are stored in a text file.
#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
void main (void)
{
clrscr();
char ch;
int x=1;
long sum=0;
long integer;
FILE *fptr=fopen("thousand.txt","r");
while (ch!=EOF)
{
ch=fgetc(fptr);
ch= .....................I AM STUCK HERE..............
}
fclose(fptr);
getch();
}