#include #include #include #include using namespace std; int main() { FILE *f; int a,b; f=fopen("data.txt","r"); FILE *g; g=fopen("dataout.txt","w"); if(f==NULL) printf("File opening error"); fscanf(f,"%d %d",&a,&b); fprintf(g,"\n%d", a+b); return 0; }