[color=#0040BF]Dear All,
I have a huge text file with name animal.txt, I have the following sample data:
>id1
lion
>id2
horse
cat
>id3
mouse
tiger
I need to save the contents of this file in an array or String without the id line. i.e
string1 = "lion"
string2= "horse
cat"
string3= "mouse
tiger"
So how can I store the data in string or array without the id line .. just only the names?
Thanks for your cooperation
[/color]
I have a huge text file with name animal.txt, I have the following sample data:
>id1
lion
>id2
horse
cat
>id3
mouse
tiger
I need to save the contents of this file in an array or String without the id line. i.e
string1 = "lion"
string2= "horse
cat"
string3= "mouse
tiger"
So how can I store the data in string or array without the id line .. just only the names?
Thanks for your cooperation
[/color]
Comment