
How can i load text strings into text actors from simple .txt file ?
And can GE make copy/paste actions with text data ?
FILE * textFile = fopen("filename.txt", "r");
fgets(text, 255, textFile);
fclose(textFile);
strcpy(string_0, string_1); // copies contents of string_1 into string_0
FILE * textFile = fopen("filename.txt", "r");
int i;
for(i=0;i<150;i++)
{
fgets(array[i], 255, textFile);
}
fclose(textFile);
Users browsing this forum: No registered users and 1 guest