This commit is contained in:
jomjol
2021-07-29 20:14:36 +02:00
parent fa3842b2b4
commit 1bcaf09855
11 changed files with 35 additions and 22 deletions

View File

@@ -173,9 +173,12 @@ void ClassFlowControll::InitFlow(std::string config)
}
else
{
fgets(zw, 1024, pFile);
printf("%s", zw);
line = std::string(zw);
line = "";
if (fgets(zw, 1024, pFile) && !feof(pFile))
{
printf("Read: %s", zw);
line = std::string(zw);
}
}
}