Probably it is a stupid question but I couldnt figure it out...
If I want to pass 2 FILE * parameters to a function_A, open it there and then use it in my main function...What I should do??
Look what I have tryed:
boh....someone would help me??Quote:
int main_function()
{
FILE *fp;
FILE *fp2;
CFile_Manip Cfile_manip;
Cfile_manip.function_A(fp, fp2); // fp is not returned !!??
fprintf(fp, "testing") // ERROR
}
bool CFile_Manip::function_A( FILE *fp, FILE *fp2)
{
char path[100];
char path2[100];
fp=fopen(path, "w");
fp=fopen(path, "w");
}
Thanks
