How to check for the file in the directory?

I need to write some code to check for the file in the folder, if the file is missing, place it in this folder.
September 19th 19 at 12:42
4 answers
September 19th 19 at 12:44
September 19th 19 at 12:46
Why not just copy it into the destination folder, not replacing the existing files?
https://msdn.microsoft.com/en-us/library/windows/d...
September 19th 19 at 12:48
Oh yeah. Cross-platform (Windows/Linux) way of checking whether the file
Purely for Windows — FindFirstFile.
At least 3 of the API call. GetFileAttributes checks for file 1 call, plus don't have anything except the name :-) - tess.Simonis3 commented on September 19th 19 at 12:51
September 19th 19 at 12:50
GetFileAttributes if Windows.

Find more questions by tags C++Programming