Hi,
I have written an application in delphi that prases a text file and populates a database.
I want my users to see the progress in a progress bar. But my problem is i can't determine the step, because the number of lines in the file keeps chaging everytime a new file is run.
I can get the total number of lines in the file but I couldn't think of a way to determine how many lines have been read already at any given time.
Can someone please help me with some sort of logic on how i can implemnt the progress bar.
Thanks a Lot,
Appreciate it.
I have written an application in delphi that prases a text file and populates a database.
I want my users to see the progress in a progress bar. But my problem is i can't determine the step, because the number of lines in the file keeps chaging everytime a new file is run.
I can get the total number of lines in the file but I couldn't think of a way to determine how many lines have been read already at any given time.
Can someone please help me with some sort of logic on how i can implemnt the progress bar.
Thanks a Lot,
Appreciate it.