home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.pascal:7830 comp.sys.ibm.pc.programmer:733
- Newsgroups: comp.lang.pascal,comp.sys.ibm.pc.programmer
- Path: sparky!uunet!uunet.ca!geac!zooid!r-node!shadow
- From: shadow@r-node.pci.on.ca
- Subject: Turbo Pascal: Graphical Bar
- Followup-To: comp.lang.pascal
- Organization: Mylic
- Date: Sun, 3 Jan 1993 04:57:27 GMT
- Message-ID: <1993Jan3.045727.1920@r-node.pci.on.ca>
- Lines: 21
-
- I'd like to know how to write a routine for displaying a "graphical
- representation bar (G.R.B.)". A G.R.B. is one that displays the progress
- of how much longer a task would take to finish certain work.
-
- Here's an example of a graphical representation bar:
-
- 0 50% 100%
- [***************.........................]
-
- Here's the question. Let's say the program reads in a variable size file
- for input, one line at a time, until End-Of-File.
-
- How could I write a routine to display the progress of reading this file?
-
- I probably first get the size of the file, which represents 100%. But how
- would I calculate each input line as a percentage of the total size?
- --
- ______ shadow@r-node.gts.org
- | |__| | If it's there and you can see it - it's real
- | () | If it's there and you can't see it - it's transparent
- |______| If it's not there and you can't see it - you erased it!
-