Yes, I understand that I should use split method.
If I do
arrayTxt=txt.split(";")
I get array with elements
[1] - start
[2] - end
[3] - event
[4]- location
[5]- sponsor
[6] - empty element // this is unnecessary element in array.
......That's why I want to get array where each element is line in text. But I don't know how to separate lines. array=[";Start;End;Event;Location;Sponsor;", ";Start;End;Event;Location;Sponsor;",...] then each String can be converted to array with split. 2010/12/30 Geografiek <[email protected]>: > Hi Natalia, > Take a look at the String.split() method in the help docs. > HTH, > Willem van den Goorbergh > > On 30 dec 2010, at 17:12, natalia Vikhtinskaya wrote: > >> Hi >> I need convert text that loads from txt file to array. >> Text looks like these lines: >> ;Start;End;Event;Location;Sponsor; >> ;Start;End;Event;Location;Sponsor; >> ;Start;End;Event;Location;Sponsor; >> …………… >> I need array of lines [line1,line2,line3,…] How I can do that? >> Thank you in advance. >> >> _______________________________________________ >> Flashcoders mailing list >> [email protected] >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= > Geografiek is a Dutch, Utrecht-based map and chart design company. > Willem van den Goorbergh can be contacted by telephone: (+31)30-2719512 or > cell phone: (+31)6-26372378 > or by fax: (+31)302719687 > snail mail: Hooghiemstraplein 89 3514 AX UTRECHT > Visit our website at: www.geografiek.nl > twitter: @wvdgoorbergh > =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= > > > > > > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

