You are here: Re: deleting row in csv file « All PHP « IT news, forums, messages
Re: deleting row in csv file

Posted by Stefan Rybacki on 10/24/05 17:15

nescio wrote:
> hello,
>
> i have made a script to read/add and update rows in an csv file.
> it works fine.
>
> but when i change an existing row i want the original row to disapear.
> now i get two rows: the original one en the changed one.
>
> so my question is: how can i delete a row in a csv file?
>

open source file, create a temporary file. Copy any line to the temporary file but the one
you want to delete. Afterwards, move the temporary files to the original source file.

Regards
Stefan

>
> thanks
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация