A Progress Bar is used to show the progress of a task, so probably your task is number of file's lines. here it may help you...