does anyone know how to be able to type text and so it goes to a separate .txt file?
+1 to first decent answer
FILE*file;
file = fopen("TextNote.txt", "w+");
fwrite(&myactor.text, sizeof(myactor.text), 1, file);
fclose(file);
FILE*file;
file = fopen("TextNote.txt", "w+");
fwrite(&TextSaver.text, sizeof(TextSaver.text), 1, file);
fclose(file);
themasterX wrote:is it possible to be able to name the file from the export and can you make multiple files?
SuperSonic wrote:themasterX wrote:is it possible to be able to name the file from the export and can you make multiple files?
rename("old_name", "new_name");
DarkParadox wrote:@SuperSonic: Pshaw, I still lurk around here every now and then, every other day or so. I'll answer questions if there aren't any replies in the topic, but you guys are really fast so I don't get much chances ヽ(゚ロ゚;)
FILE*file;
file = fopen("TextNote.txt", "w+");
fwrite(&TextSaver.text, sizeof(TextSaver.text), 1, file);
fclose(file);
Users browsing this forum: No registered users and 1 guest