can anybody show me
wat's wrong with my code .
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
main()
{
FILE *fp1,*fp2;
char ch,ch1;
fp1=fopen("ma.dat","r");
fp2=fopen("na.dat","w");
while(!feof(fp1))
{
ch=fgetc(fp1);
fprintf(fp2,"%c ",ch);
}
fclose(fp1);
fclose(fp2);
}
i 'm trying to read from a file and writing to another file. some problem exist .
thank's in advance