Hi all!
This is my problem:
void getfiles(char *f){
freopen(f,"a",stdout);
fprintf(f,"%s",system("dir /b c:\\bcn\\data\\*.*"));
fclose(f);
}
It works correctly, but the rest of the programm also is written in 'f'. I want to write the rest of output in normal...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.