first we read something from the text files ( INT type only ),
then i want read till "\n" stop and inceasement a value,
examples,
int Attendance[10][10];
ExistingFile = fopen("Attendance.txt", "w");
if(!ExistingFile)
{
printf("\t\t This File Cannot Be Open Successfully!!\n");
printf("\t\t Please Check It!!\n");
exit(-1);
}
else
{
fprintf(ExistingFile, "1 0 0 1 1\n");
fprintf(ExistingFile, "1 1 1 1 1\n");
fprintf(ExistingFile, "0 0 1 1 0\n");
fprintf(ExistingFile, "1 0 0 1 1\n");
fprintf(ExistingFile, "1 1 0 0 1\n");
fprintf(ExistingFile, "1 0 1 0 1\n");
x = 0;
while(x<6)
for(i=0; fscanf(AppendingFile,"%d ", &Attendance[x][i]) != EOF; i++)
{
if(fscanf(AppendingFile,"%d\n",&Attendance[x][i]) != EOF)
x++; }
how can we do with that?