fopen... then fopen
Can you call fopen while you still have another fopen call open?
Like:
file = fopen("file.txt", "r");
file2 = fopen("file2.txt", "r");
fclose(file2);
fclose(file);
Yes you can, although there is a limit to how many can be opened at one time, but I believe that is specific to the different platforms.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement