I would like to print a line, than delete it, than print another one in the same line. I would like this because I do not to loose or go to much back for getting the information that was printed before the loop where I print things like Processing file <X>
. I know that it is possible, because I have seen stuffs like that, but I did not found the way to do it.
This is my code:
std::cout << "Print important information" << std::endl;
for (int i = 0; i < filesVec.size(); i++)
{
std::cout << "Processing file " << i << std::endl;
// processing file
}
std::cout << "Print another important information" << std::endl;
This prints me a lot of lines between the first and second important informations. I would like to print all the processing file X
info to see that it is not getting stuck on some file. At the end I need the important info, so Is there a statement to do what I want?