|
Posted by C. on 06/15/07 21:17
On 15 Jun, 19:03, Darko <darko.maksimo...@gmail.com> wrote:
> On Jun 15, 6:43 pm, lawp...@gmail.com wrote:
>
> > And now for the reverse question -
>
> > What's the best way to insert a string, or a line, in an arbitrary
> > position in a text file?
>
> What is your question, actually? It seems to me your answer is
> actually "Can I replace/remove a string without reading/writing the
> whole file?" If that's the question, than "No", and that's not
> something you are limited with from PHP but from the filesystem.
methinks sed might be a better solution than php
C.
[Back to original message]
|