Trying to open file in a relative path, Path is different everytime, I want to use a char as path
Currently I have:
char path[128];
strcat(path, "/home/pi/Analyses/");
strcat(path, lstAnalyse);
strcat(path, "/data.txt");
fopen(path, "a");
What is the right way to use a char as path with fopen ?