wossname
Jul 3rd, 2001, 12:46 PM
Hi,
before I get too far into this - I'M USING THE RHIDE/DJGPP C++ COMPILER FOR DOS
What I need to accomplish:
1. The user supplies a filename (full path)
2. My program reads in datafrom that file in 4 byte chunks into an array where each element contains 16 unsigned long ints. (If the file isn't quite enough to fill the last element in the array then I need to pad the element out with zeros).
3. Apply some logic to all the data (I have this sorted out already)
---------
Things I don't know at runtime:
1. The length of the file, and therefore how many elements I will need in the array.
---------
Things I need to know:
1. The length of the file before I open it
1. It would be nice to have either: a graphical interface for selecting a filename (much like a common dialog box) *OR* some way of validating the format of the file path string.
So is there a library for filename validation or the common dialog idea?
before I get too far into this - I'M USING THE RHIDE/DJGPP C++ COMPILER FOR DOS
What I need to accomplish:
1. The user supplies a filename (full path)
2. My program reads in datafrom that file in 4 byte chunks into an array where each element contains 16 unsigned long ints. (If the file isn't quite enough to fill the last element in the array then I need to pad the element out with zeros).
3. Apply some logic to all the data (I have this sorted out already)
---------
Things I don't know at runtime:
1. The length of the file, and therefore how many elements I will need in the array.
---------
Things I need to know:
1. The length of the file before I open it
1. It would be nice to have either: a graphical interface for selecting a filename (much like a common dialog box) *OR* some way of validating the format of the file path string.
So is there a library for filename validation or the common dialog idea?