I want to process data (using fstream) and print out the progress. This doesn't work with cout <<, only with puts, but this causes a line-break but I want a progress bar like this : [=====================].
I've already searched for an hour in the reference and with google and I dont manage to put a string without a linebreak:
while (ein.good()) // loop while extraction from file is possible
{
c = ein.get(); // get character from file
if (ein.good()){
aus.put(encc(c));
if (zaehler%p==0){ // p is 5 percent of the progress
puts("="); // print one = for every 5% processed
}
}
}
Please tell me how to do it without the linebreaks...