0

I need help making code that will create 4 different output files.

All I know at the moment on this topic is how to fopen/fclose and the stuff in between however fopen requires the output file to be available before the program stars to run.

Mabey theres an fcreate function or something? : )

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by s_sridhar
0

I did some testing and fopen can make the output file even if it's not initially there. Solve my own problem.

0

file when opened in write mode, doesn't require the file to exist, it creates one on its own. but you cannot read a nonexistent file.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.