View Single Post
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world :)
Old 11-24-2012 , 15:12   Re: New File Vault - A newer file vault system!
Reply With Quote #27

How to retrieve number of keys in a file?
EDIT:
I wrote a quick stock to count the number of keys
will this work?
Code:
stock nfv_get_keys_num(szFile[], const identifier=';') {     new f = fopen(szFile, "r")     if(  !f  )         return 0             new iNum, line[3], i     while(!feof(f))     {         fgets(f, line, charsmax(line))                 if(line[0] == identifier)             ++i     }         fclose(f)     return i }

EDIT2:
After secound thought, it turned to be useless as I can't loop through all entries :\
Too bad ...
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.

Last edited by pokemonmaster; 11-24-2012 at 16:15.
pokemonmaster is offline