Read/writeing in files
If i have a file called gNames.txt and to search the entire file, for an steamID, what would i do then?
And if i have a line saying: "stigma B 21", then what should i do if i want my plugin to read the second word, which is equal to "B"? |
Re: Read/writeing in files
Search the entire file for a steamid:
Code Snippet: Code:
To read the second word: Code snippet: Code:
Or, just look at my plugin called Users List. |
Re: Read/writeing in files
Another way are the new filehandle commands
Code:
|
Re: Read/writeing in files
search for authid:
Code:
Code:
parse() is bad |
Re: Read/writeing in files
You should know better than to hardcode paths :nono:
get_localinfo(); get_configsdir(); |
Re: Read/writeing in files
Quote:
"strbreak" is not constructed for filehandle.It is for like "replace",search a string inside and break them into 2 strings. |
Re: Read/writeing in files
Just because I native has a good purpose/use doesn't mean the implementation of it is. I'm not saying it is bad, just bringing up a point.
|
| All times are GMT -4. The time now is 04:50. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.