jupper Posted September 8, 2003 Report Share Posted September 8, 2003 kaa no .txt faila idzeest vienu rindu un saglabaat no jauna failu bez shiis vienas rindas! Link to comment Share on other sites More sharing options...
fassko Posted September 8, 2003 Report Share Posted September 8, 2003 panjem nolasi visu txt un paskai lai vinjsh ieraksto to atkal pa jaunu idzeeshot to tukshu bez taas rindas ;) protams rindas iebaaz masiivaa pirms tam ... Link to comment Share on other sites More sharing options...
Venom Posted September 9, 2003 Report Share Posted September 9, 2003 $saturs=file('fails.txt');//ielasa failu masīvā unset($saturs[29]);//dzēšam 30 rindu (atceramies, ka masīvi sākās no 0 indeksa) $w=fopen('fails.txt','w');//atveram failu pārrakstīšanai fwrite($w,join('',$saturs)); //pārrakstām faila saturu, "salipinot" masīva elementus ar tukšimbolu vienā stringā fclose($w); z end Link to comment Share on other sites More sharing options...
fassko Posted September 9, 2003 Report Share Posted September 9, 2003 tieshi to jau es gribeeju teikt :P Link to comment Share on other sites More sharing options...
Recommended Posts