How do I create a new file?

I would like to create a new file in my computer via a programme. How can I do it?
Last edited on
This is a feature so old and the very question is asked often. Did you even try googling it?

http://www.cplusplus.com/reference/iostream/fstream/
http://www.cplusplus.com/doc/tutorial/files/
or alternatively, you could use OS specific functions.
Last edited on
Topic archived. No new replies allowed.