I want to access the files in the "AppData\Local" folder, but there is an error in this file. please help.
/* Filename : main.c */
#include <stdio.h>
#include <stdlib.h>
int main() {
char* pPath = getenv("LOCALAPPDATA");
pPath += "\\Folder\\File.dat";
printf("The current path is: %s", pPath);
return 0;
}
Error :
invalid operands to binary + (have 'char *' and 'char *')