I want to pass input and output file as command line arguments...
I want output file pointer have to be passed as argument to a function..
How can i do it? Is this Ok??
But I am getting Error :cannot convert `_iobuf' to `FILE**' for argument `2' to `void encode(char*, FILE**)'
Help me how to do please?
int main(int argc,char *argv)
fp2=fopen(argv,"w"); // file opened here
void encode(char *str,FILE **fp2)
// Here i want to write it to file