In this C program
C
#include #include int main() { int file = open(\"Result\", O_CREAT|O_WRONLY, S_IRWXU);
You should use the popen() library function and read chunks of data from the returned FILE * and write them to whatever output file you like.
popen()
FILE *
Reference.