Page 1 of 1

Saving Text files

PostPosted: Tue Mar 08, 2005 1:55 am
by willg101
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.

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);

PostPosted: Tue Mar 08, 2005 2:09 pm
by makslane
I think you can use:

saveVars(filenameactor.text, "actors");

And:

FILE *fp;
fp = fopen(filenameactor.text, "w");
fprintf(fp, "%s", text_body.text);
fclose(fp);

But Game Editor was not designed to make word processors!

PostPosted: Tue Mar 08, 2005 4:17 pm
by willg101
I know. :wink:

PostPosted: Tue Mar 08, 2005 5:12 pm
by Just4Fun
Hey Will,
I'm with you. I would really like to be able to make some applications with GE. I'm especially interested in database applications for PPC. GE is so powerful, yet easy that I'm hoping someday to see it become a complete development platform! :lol:

Keep us posted on your progress...