writing to a file

From: Date: Wed, 06 Mar 2002 15:38:37 +0000
Subject: writing to a file
Groups: php.general 
Request: Send a blank email to php-general+get-87572@lists.php.net to get a copy of this message
Hi, Here is a foo.txt file : name=foo age=100 sex=y I want to open the file, find the age line, and then replace the 100 with another value. The only way i see, is to rewrite the entire file........ Maybe this is a stupid question, but, i tried the online doc, and saw nothing about this.... Thanks a lot Marc-Andre Vallee vallee.marc-andre@teccart.qc.ca

« previous php.general (#87572) next »