Original Post
How do you go about reading from a file to inserting the text from that file into your code
for example, I want to be able to read classnames from a text file, example
MyClass
MyClass2
So in the code, I''d like to read that in and say
pseudo code:
Text = ReadFromFile();
So now Text = "MyClass"
then be able to say
"MyClass"* pointer = new "Myclass"
of course the quotation marks don''t work, but you get the general idea. How do get it to insert the name that I read? Is there a conversion or something?