M
micky
Hi All,
I am reading a text file which has been formatted using spaces like this:
--------
node_2382 --> Peptostreptococc 10 1 0.333 T ==> C
21 1 0.500 G ==> A
23 1 0.500 G ==> A
25 1 0.750 G ==> T
31 1 1.000 C ==> T
45 1 0.500 G ==> A
47 1 0.250 T ==> C
node_2384 --> coccostreptococc 10 1 0.333 T ==> C
21 1 0.500 G ==> A
23 1 0.500 G ==> A
25 1 0.750 G ==> T
31 1 1.000 C ==> T
45 1 0.500 G ==> A
47 1 0.250 T ==> C
--------
And so on. I'd like to read it into an array such that node_xxxx goes in
char[1], the string after --> goes in @char[2], the number in the 1st
column goes into @char[3] and so on.
Could someone help me with this?
Thanks,
-M
I am reading a text file which has been formatted using spaces like this:
--------
node_2382 --> Peptostreptococc 10 1 0.333 T ==> C
21 1 0.500 G ==> A
23 1 0.500 G ==> A
25 1 0.750 G ==> T
31 1 1.000 C ==> T
45 1 0.500 G ==> A
47 1 0.250 T ==> C
node_2384 --> coccostreptococc 10 1 0.333 T ==> C
21 1 0.500 G ==> A
23 1 0.500 G ==> A
25 1 0.750 G ==> T
31 1 1.000 C ==> T
45 1 0.500 G ==> A
47 1 0.250 T ==> C
--------
And so on. I'd like to read it into an array such that node_xxxx goes in
char[1], the string after --> goes in @char[2], the number in the 1st
column goes into @char[3] and so on.
Could someone help me with this?
Thanks,
-M