this seems like the working code to create a file if it isnt already created, and open it likewise:
and the output in the created/opened file is:Code:if(!auto_file)
auto_file = fopen(path, "a+");
else
auto_file = fopen(path, "a+");
fprintf(auto_file, "hello4");
fgets(test, 250, auto_file);
printf(test);
i don't know if it shows up on the forum, but there is a lot of whitespaces when i didnt put them in. and also the "=", where did that come from???Code:hello4=