Reading and displaying information from a file
Hi everyone.
Who can help, need to read configs / rules.txt file And display in the chat every line that is in the file |
Re: Reading and displaying information from a file
Quote:
Code:
new String:g_sFilePath[PLATFORM_MAX_PATH]; |
Re: Reading and displaying information from a file
Quote:
PHP Code:
|
Re: Reading and displaying information from a file
Reading lines from a file every time you want to use them is bad practice. You should consider using a global array of strings to store the lines, and use that array later for printing.
Take a look at the way I'm doing it in my Advanced-Filters plugin: https://github.com/FAQU2/Advanced-Fi...ions.sp#L1-L60 |
Re: Reading and displaying information from a file
as FAQU said something like this should be better
PHP Code:
|
All times are GMT -4. The time now is 14:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.