from time import sleep
# from ProgressPrinter import ProgressBar

# def ex5():
#     with open('main.py', 'r') as file:
#         pb = ProgressBar(len(file.readlines()), 'lynes', pre="Reading lines from file {}".format(file.name), post='Finished reading file!')
#         file.seek(0)
#         pb.print_progress()
#         for lineNumber, data in enumerate(file, start=1):
#             pb.print_progress(lineNumber)

# ex5()