Can you make a file empty?

From: Date: Tue, 20 Feb 2001 18:46:36 +0000
Subject: Can you make a file empty?
Groups: php.general 
Request: Send a blank email to php-general+get-40785@lists.php.net to get a copy of this message
Hi! I am trying to delete all text in a file. $yourfile = "file.txt"; $fp = fopen($yourfile,w) "is there any good code to put in here?" fclose($fp); Thanks for any help. Regards Jan

« previous php.general (#40785) next »