Re: [Flashcoders] text to array

2010-12-30 Thread natalia Vikhtinskaya
THANK YOU 2010/12/30 Zeh Fernando : > Geografiek's reply still stands - you still use a split since the new > line/carriage return is just another character (but which will depend on the > file's system used). > > lines = alltxt.split("\r\n"); // 0x0d 0x0a, windows > lines = alltxt.split("\n")

Re: [Flashcoders] text to array

2010-12-30 Thread Zeh Fernando
Geografiek's reply still stands - you still use a split since the new line/carriage return is just another character (but which will depend on the file's system used). lines = alltxt.split("\r\n"); // 0x0d 0x0a, windows lines = alltxt.split("\n"); // 0x0a, linux/osx lines = alltxt.split("\r"); //

Re: [Flashcoders] text to array

2010-12-30 Thread natalia Vikhtinskaya
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

Re: [Flashcoders] text to array

2010-12-30 Thread Geografiek
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

[Flashcoders] text to array

2010-12-30 Thread natalia Vikhtinskaya
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. ___