How can I check if a file exists in APPDATA without using the full path ?
#include <stdio.h>
#include <unistd.h>
#include <windows.h>
int main(void)
{
if (access("%APPDATA%\\changzhi_leidianmac.data", F_OK) != -1)
{
printf("File Found......");
}
else
{
printf("File not found !!!!");
}
return 0;
}