In C++, what would I need to write in order to have a batch file written to a certain directory? Like, the program would write a batch file in a folder on my desktop for example.
In C++, what would I need to write in order to have a batch file written to a certain directory? Like, the program would write a batch file in a folder on my desktop for example.
Start out with Basic File I/O:
http://www.cprogramming.com/tutorial/lesson10.html
O.k., I understand writing to a file now. I know there is a way to CREATE a new file, and i will research on it, but it would help to get help...
oh, never mind... DUH! thanks mrafcho001! i went through the tutorials and never knew what the ofstream was used for till now...