What I want to actually do, is check if application001.txt exists, and if it doesn't, create that file then write to it, and then close it. If it does exist, then I would like to write to file application002.txt or application003.txt etc...
I know I need to loop through the file names, but I don't know how to use ofstream to check if a file exists, I can only find ifstream examples.
Any help would be appreciated!
3 Months Ago
Related Article:Check if file exists on URL
is a C++ discussion thread by hmartinez that has 2 replies, was last updated 11 months ago and has been tagged with the keywords: check, file, exists, url, curl.