Saving Text files
Posted: Tue Mar 08, 2005 1:55 am
When I first started using GE's new user imput actor, I instantly came up with the idea of making a mini-word processor for myself. I was wondering if it would be possible, through the new imput actor to select a file name for saving a variable/text file... I was wondering if something like the following would work.
-or-
- Code: Select all
textbody=strcpy(text_body.text)
filename=strcpy(filenameactor.text)
saveVars("filename.sav", actors)
-or-
- Code: Select all
textbody=strcpy(text_body.text)
filename=strcpy(filenameactor.text)
FILE *fp;
fp = fopen("filename.txt", "w");
fprintf(fp, "textbody");
fclose(fp);