PDA

View Full Version : How to extract?


Coral_Lover
10-16-2002, 11:04 AM
Hi, does anyone know how to extract something like this??
"Test.txt Testing.txt Test1.txt"? I need to get that string separated into 3 different string which is like this: "Test.txt" "Testing.txt" "Test1.txt". How can achieve that??

Roelf
10-16-2002, 12:03 PM
string = "test.txt testing.txt testagain.txt";
arr = string.split(" ");
this gives an array of all elements, make sure the elements you need are separated by an space
acces them like: arr[0, arr[1] etc