Raised This Month: $ Target: $400
 0% 

[help] fopen


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
katna
Senior Member
Join Date: May 2010
Old 08-23-2010 , 03:04   [help] fopen
Reply With Quote #1

i have a txt file which is simillar to this:
PHP Code:
"katna" "3"
"other names" "3"
"other names" "4"
"other names" "5" 
my question is how can i read and both write to a file at the same time because i want to change the second number + 1. for example if the number is 3 i want to change it to 4
katna is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-23-2010 , 13:02   Re: [help] fopen
Reply With Quote #2

Using nVault might work better depending on what you are doing.
__________________
fysiks is offline
tm.
Member
Join Date: Apr 2010
Old 08-23-2010 , 13:23   Re: [help] fopen
Reply With Quote #3

Your you could use tries to temporary store data, and saving it in the text file at plugin_end. Again, depending on what you are doing.
tm. is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 08-23-2010 , 13:41   Re: [help] fopen
Reply With Quote #4

Need to store data between map changes or restarts, use nvault
Only need to store data for current map or round, use tries
__________________
Bugsy is offline
Reply



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 21:51.


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