How to read file
I'm making new plugin that has something like log file, how can I make command amx_checklogs that will read that file and print everything from it in console?
|
Re: How to read file
|
Re: How to read file
Ok, but how to print in in console?
I tried this but it doesn`t work new szLine[ 32 ] , iLen; read_file( "log.ini" , 0 , szLine , charsmax( szLine ) , iLen ); client_print(id, print_console, "%s", szLine) *Log.ini file is in config folder |
Re: How to read file
|
Re: How to read file
how to print in the file/.?
|
Re: How to read file
I tried everything and it still doesn`t work, could anyone give me exaple?
*Log.ini file is in config folder |
Re: How to read file
Show your full code so we can see what's wrong with it.
|
Re: How to read file
Quote:
|
Re: How to read file
size = file_size( "file" , 1 )
for ( new i = 0 ; i < size ; i++ ) Pass i as second param in read file |
Re: How to read file
Like this:
Quote:
|
| All times are GMT -4. The time now is 19:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.