How do i create two files in app data directory ?
Im unable to create two files and store the file path pointer of both.
char* get_write_filepath(char *filename)
{
char write_filepath[10000] = {0,};
char *resource_path =NULL;
resource_path=app_get_data_path();
if(resource_path!=NULL)
{
snprintf(write_filepath,10000,"%s%s",resource_path,filename);
free(resource_path);
}
return write_filepath;
}
char* file_path1=NULL;
char* file_path2=NULL;
file_path1=get_write_filepath("TestApplication1.txt");
file_path2=get_write_filepath("TestApplication2.txt");
When i print file_path1 and file_path2 ,both are same.How ?