Hi, I have this code in an if statement inside a mousepressed event and it doesnt appear to be overwriting the current file (variables.txt) with the new string
Any help appreciated,Code:if (i==2)
{
char my_filename[] = "variables.txt";
fopen(my_filename,"w");
printf(my_filename,"%d\n",2);
}
thanks,
Marc