Update, It no longer crashes, but the text output is all distorted.
It's supposed to output Level1.txt, but instead I get Level1.t0Y, where 0 is a white square, and Y is in a weird font.
My new code:
char* result;
char destination [ ] = "Level";
char addedStuff [ ] = "1.txt";
result = strcat(destination, addedStuff);
ifstream myfile (result);
dbText(10,10,result);
Edited:
Nevermind! It works now, I realized that I wasn't specifying the size of the chars, I changed the size to 256 and it works now ^^.
Second edit:
So now that I have that, I want to replace the "1.txt" with a variable value.
I have an integer value for CurrentLevel that I want to replace the 1 with, but I want to keep the ".txt" constant.
How would I accomplish the DBP equivalent of "Level" + Str$(1) + ".txt"?
Thanks