Write a file in a specific path in C++
Specify the full path in the constructor of the stream, this can be an absolute path or a relative path. (relative to where the program is run from) The streams destructor closes the file for you at the end of the function where the object was created(since ofstream is a class). Explicit closes are a … Read more