[HELP] Opening files by their number in the folder
#1

So..ill try to make this as easy to understand as possible:

For example:
There are 10 files in a folder. They are named "username.cfg"

Folder:
jacob.cfg
carlos.cfg
james.cfg
alex.cfg

jacob would be id 1
carlos would be id 2, etc.

would it be possible to open file #1 in the folder?
so without doing
Код:
fopen("jacob.cfg")
I could do
Код:
fopen(file1);
Also possibly if i could get the title of the file as well? thanks..
Reply
#2

No, you cannot open a specific file number unless you do then alpha/numerically ordered. Even then it would be hard.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)