I know this is a frequently asked question, but most solutions I have found are from 6-10 years ago and don't seem to work.
As a part of the C program I am writing in Visual Studio, I need to find a function that is able to return a boolean value - whether or not a file with a given name exists (the file in question is located in the debug directory, which is why I am saying file name and not file path). I need to implement it using a library I am able to include in VS, hence using access() from the unistd.h library will not work. Also, it has to be a safe function. If there's a function in the WINAPI that does all of that - that would be best.
Thanks in advance for the help.