martins256 Posted December 3, 2005 Report Share Posted December 3, 2005 kaads vareetu iedot skriptu, kas nolasa no faila 5. rindinu un sadala so rindinu divos mainiigajos, taa ka 1. mainiigais ir liidz atstarpei, bet otrais peec atstarpes. 5. rindina: aaaaaa bbbbbb vajadzeetu ieguut $a = "aaaaaa" un $b = "bbbbbb" luudzu paliidziet Link to comment Share on other sites More sharing options...
wudu Posted December 3, 2005 Report Share Posted December 3, 2005 (edited) $data = file("fails.txt"); $str = explode(" ", $data[4]); tevis mekleetais ir $str[0] un $str[1] Edited December 3, 2005 by wudu Link to comment Share on other sites More sharing options...
martins256 Posted December 3, 2005 Author Report Share Posted December 3, 2005 paldies Link to comment Share on other sites More sharing options...
hmnc Posted December 4, 2005 Report Share Posted December 4, 2005 ja tev failā būs 666 rindiņas tad tas nebūs diez cik efektīvi, jo sanāk nolasīt visas 666 rindiņas un tikai tad izvēlēties to piekto... Link to comment Share on other sites More sharing options...
Recommended Posts