I am trying to read in a file of integers for a heap sort program. The problem I am having is that the code will only grab the second digit. If the integer is only a single digit it will throw an error on me.
Data File:
10
11
13
19
34
12
45
91
91
16
33
Output:
C:/test.txt
0
1
3
9
4
2
5
1
1
6
3
[ September 28, 2004: Message edited by: Dirk Schreckmann ]