Raised This Month: $ Target: $400
 0% 

[REQUEST]Reading from a multiple files


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Unkolix
Veteran Member
Join Date: Sep 2012
Old 02-12-2013 , 15:37   Re: [REQUEST]Reading from a multiple files
Reply With Quote #5

It seems that I can't understand more then 75% of this:
PHP Code:
    new sorryfile[64]
    
get_configsdir(sorryfilesizeof(sorryfile) - 1)
    
add(sorryfilesizeof(sorryfile) - 1"/bot_apology.ini")
    
    if( !
file_exists(sorryfile) )
    {
        
copy(g_sorry_phrases[0], SORRYS_LEN"sorry")
        
g_sorry_count 1
        
return
    }
    
    new 
fopen(sorryfile"rt")
    
    new 
data[SORRYS_LEN]
    
g_sorry_count 0

    
while( !feof(f) && g_sorry_count SORRYS_MAX
    { 
        
fgets(fdatasizeof(data) - 1)
         
        
trim(data)
        if( !
data[0] || data[0] == ';'
            
|| data[0] == '/' && data[1] == '/' ) continue;
        
copy(g_sorry_phrases[g_sorry_count], SORRYS_LENdata)
        
g_sorry_count++
    } 

Last edited by Unkolix; 02-12-2013 at 15:37.
Unkolix is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:30.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode