I've been struggling for the past hour, but with no use. I just can't understand how files work in amxx. Maybe because I'm tired.
Anyways, suppose we have a file inside amxmodx/configs/messages.txt
and the contents of messages.txt are
PHP Code:
What a nice day
Problems
Good night
I want to change "Problems" into "No problems" then rewrite the file.
How would I do this? I tried reading the whole file as a string then using replace_all and I failed miserably.
Code snips would also be very welcome
__________________