I have been looking for an answer for the last few hours on google with no success. I am trying to create a program that will determine what file to open from user input.
names of the text files are xaa through xzz.
The text files contain integers that are incremented 1 to 250,000,000.
Each file contains 370,000 integers except the last file.
xaa - 1 through 370,000
xab - 370,000 through 740,000
So the program asks which number they would like to find and the file goes to the file with that number and opens that line then prints it to the screen.
I am having a hard time figuring out how to tell the program which file to open. I know I can take the number entered and divided by 370000 to find out what file it is but how to I translate that into the file name? (example the number requested is 200, 200/370000 is less then 1 so it would be on the first page.
Any help would be appreciated.