Howley
Fledgling Freddie
- Joined
- Sep 8, 2004
- Messages
- 1,257
Hey guys n gals... basically im looking for help in a project im doing atm in visual c++
I have a list control box, reading in from binary files and it works (headings initialized and using a "List Files button" to start the reading) but im using a while loop (while(!file.eof())) cause i cant be sure how many files my lecturer will use but its listing them in reverse ie. decending order.
properties for the list control, sort - ascending doesnt work cause it goes 1, 11, 12,.., 2, 20 etc.
is there any 'reverse' eof i can use for the while loop so that i can use ios::end and --refno for seekg instead?
I have a list control box, reading in from binary files and it works (headings initialized and using a "List Files button" to start the reading) but im using a while loop (while(!file.eof())) cause i cant be sure how many files my lecturer will use but its listing them in reverse ie. decending order.
properties for the list control, sort - ascending doesnt work cause it goes 1, 11, 12,.., 2, 20 etc.
is there any 'reverse' eof i can use for the while loop so that i can use ios::end and --refno for seekg instead?