Re: [Tutor] Read a matrix with lines in different behavior

2014-05-23 Thread Peter Otten
Felipe Melo wrote: > Hello, > > I want to read the below matrix, identify when the characters in front of > "want = " are equal to "1" and then save in an array and in an output file > the characters above. But I don't know how to identify the second line and > store in a variable: > > alpha=0 b

Re: [Tutor] Read a matrix with lines in different behavior

2014-05-23 Thread Mark Lawrence
On 23/05/2014 13:23, Felipe Melo wrote: Hello, I want to read the below matrix, identify when the characters in front of "want = " are equal to "1" and then save in an array and in an output file the characters above. But I don't know how to identify the second line and store in a variable: alp

[Tutor] Read a matrix with lines in different behavior

2014-05-23 Thread Felipe Melo
Hello, I want to read the below matrix, identify when the characters in front of "want = " are equal to "1" and then save in an array and in an output file the characters above. But I don't know how to identify the second line and store in a variable: alpha=0 beta=2 gamma=50 want = 0 alpha=0