• Advertisement

Archived

This topic is now archived and is closed to further replies.

fopen... then fopen

This topic is 5343 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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);

Share this post


Link to post
Share on other sites
Advertisement
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.

Share this post


Link to post
Share on other sites

  • Advertisement