I am trying to parse an .html file to find a certain tag and then starting from the position I reached write into the file:
std::fstream file;
file.open(".\\img\\file.html", std::fstream::in || std::fstream::out);
if (file.is_open())
{
char s[1024];
bool f = false;
while(f != true)
{
file.getline(s,1024);
if (strstr(s,"<table>") != NULL)
f = true;
}
file << "Something";
}
else
printf("Error opening file.html\n");
from the debug I can confirm i find the desired tag, but nothing is written to the file, what am I doing wrong?