Answer the question
In order to leave comments, you need to log in
Show old value instead of new (std::stream)?
In general:
1) I upload a text file
2) Then I open it and set the value to the ss line
std::remove("base.txt"); // Удаляю старый файл, если он имеется
URLDownloadToFile(0, "url/base.txt", "base.txt", 0, 0);
std::ifstream f("base.txt");
std::stringstream ss;
ss << f.rdbuf();
f.close();
if(ss.str() == "OK")
{
Load();
}
else
{
Exit();
}
Answer the question
In order to leave comments, you need to log in
I opened the base.txt file, read it, got the value (string) and assigned the string to ss
URLDownloadToFile(0, "url/base.txt", "base.txt", 0, 0); std::remove("base.txt"); // Удаляю старый файл, если он имеется std::ifstream f("base.txt");
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question