editing a file
| From: | Andres Gonzalez | Date: | Mon, 24 May 2010 21:16:43 +0000 |
| Subject: | editing a file | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-305493@lists.php.net to get a copy of this message | ||
I have a large C source file that is generated by a separate source-generating program. When the generated src file is compiled, it produces tons of warnings. I want to edit the generated src file and delete the offending lines.
What is the easiest way using a PHP script to read in a file, search for a particular signature, and delete a couple of lines? Seems like this would be very easy in PHP.
Thanks,
-Andres