how should i store these?

This is a discussion on how should i store these? within the C++ Programming forums, part of the General Programming Boards category; ok,
I have a series of numbers, they happen to be index numbers for files, but anyhow, I need to ...

how should i store these?

ok,
I have a series of numbers, they happen to be index numbers for files, but anyhow, I need to store them in an organized manner, then use the "number" i have stored in conjunction with a filepath string so that i can open these files and search through them, i know how to get them opened up and searched, but how should i store them? here's what i've been tinkering with:

Code:

string amt[](
"0012",
"0100",
"0740",
"3390",
"4619",
"4620"
);

integer arrays won't work because there are 9's in some of the numbers and i get base 8 errors. i was goofing around and switched to char arrays and got twice the amount of errors i have now...what should i do? I need to organize these things so i can easily pull them out.
note: in total....there's around 5000 sets up numbers in seperate arrays

I'm also doing this (i know it's not the right way to do it, but it's a start and i'm hoping you can help:

"...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

integer arrays won't work because there are 9's in some of the numbers and i get base 8 errors.

You mean because of the 0012, 0100, 0740 values? Just don't put the 0's in front of them. Store 12, 100, 740 and when it comes time to use them just remember that they are suppossed to be treated as 4 digit 0 filled values.

"Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
-Christopher Hitchens

basically,
the program goes through a bunch of text files that are actually source code programs for machines such as lathes and the like, the numbers are the filenames (no extensions) and they're spit out by the machine, my program is designed to allow a user to search for a string that user typed within those files, that's why i have to open them. i can't change their names....i like the struct idea, i might try and go with that, but it will be a lot of copy and pasting as there are a lot of numbers.....there's 24 directories, all containing files like these...that might help you guys get a better idea of what i'm trying to do

it's funny that you should mention that, it was my first approach
but, it was too clunky to strip the directory paths out of the txt files, especially because it also listed c:\.. and c:\... which are just paths to the previous folder...anyhow i also have another way of doing it with some windows functions....and it's sound code and i didn't have to use all the filenames, but for some reason i couldn't get it to give me any information....i'm using this way because once i get over this hurdle i should be able to get it to work.......but i did like my windows function approach as opposed to this...you might see a question tomorrow pertaining to it if i just get sick of this. by the way it's just going to run on win9x, it's a dos console program