Getting the highest index in folder
#2

pawn Код:
new File: my_FILE,
      str[15],
      temp;
for( new i = 0; i < MAX_FILES; i++ )
{
     format(str, 15, "file_%d", i);
     my_FILE = fopen( str, io_read );
     if( my_FILE )
     {
           temp = i;
     }
     else continue;
}

MAXIMUM INDEX  =  temp;
I think something like this COULD work? I am not too experienced with files, TBH.
Reply


Messages In This Thread
Getting the highest index in folder - by AlonzoTorres - 21.10.2013, 10:52
Re: Getting the highest index in folder - by RajatPawar - 21.10.2013, 10:59
Re: Getting the highest index in folder - by AlonzoTorres - 21.10.2013, 11:07
AW: Getting the highest index in folder - by BigETI - 21.10.2013, 12:17

Forum Jump:


Users browsing this thread: 1 Guest(s)