percentage from terminal

Hey guys and girls.

say I want to update a file but I want to show the percentage when it is being updated. How can I do this? Do I need to use threads?
Can you provide a little more detail?
say I am writing something to a file from my cpp program from struct array, Is it possible to show percentage increment until writing is fully done?
Topic archived. No new replies allowed.