Hello. I need some help with a problem I can't quite seem to solve, neither in pure C++ nor with the help of SFML.
Basically, say I have the following code.
#include <iostream>
int main()
{
}
And then, in a separate document called "Something.txt":
std::cout << "Hello!";
Now I want to do something like this:
int main()
{
// somehow read from "Something.txt", so that the code written in the .txt file is entered here
// therefore, it would write:
// std::cout << "Hello!";
}
Is there any way to do this in C++ / SFML?
I'd appreciate any help I can get.