> -----Original Message-----
> From: Josh [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 15, 2002 10:12 PM
> To: [EMAIL PROTECTED]
> Subject: Modifying text in a dat file
> 
> 
> Hey guys.. 
> 
> I wrote a script that writes to a dat file with the following 
> username:plan: .. example test:20:
> they have 20 hours of 'dialup' access.  
> 
> If say the user "test" calls and wants to upgrade their plan 
> to 50 hours (our next plan) how would i write to the dat file 
> and just replace the $plan ?

You might find the following FAQ article helpful:

perldoc -q 'How do I change one line in a file/delete a line in a
file/insert a line
in the middle of a file/append to the beginning of a file?'

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to