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? : )

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

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.