'Missing text in messagebox of txt file pulled from local directory [closed]
I'm trying to pull text from a local directory. but why is it giving missing text? And when you say ok, the message box constantly pops up and shows other posts.
int LoadingSystem()
{
std::ifstream myReadFile;
myReadFile.open("resource/licence_english.txt");
char output[10000];
if (myReadFile.is_open())
{
while (!myReadFile.eof())
{
myReadFile >> output;
MessageBox(NULL, output, "Test Message", MB_OK);
}
return 0;
}
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
