Raised This Month: $ Target: $400
 0% 

[Help] Editing txt files


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
katna
Senior Member
Join Date: May 2010
Old 07-20-2010 , 08:30   [Help] Editing txt files
Reply With Quote #1

well i'm creating a plugin which save the top 5 only scorers(soccerjam) in a txt file in this format:
PHP Code:
"Steam id" "Goals" "Assist" 
any way i coded it and got it to be like this
PHP Code:
"STEAM_0:1:31287965" 0 0
"STEAM_0:1:23423345" 0 0 
now the problem is how can i edit the goal amount or the assist amount.
do i need to delete this line and re-add it edited or there is a better way to do it? for example if someone score and he is one of the top 5. Automaticly update the txt where is steamid.
katna is offline
 



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 07:06.


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