hi,

i having problem in reading input value in matrix form and store it in matrix.

below is a sample of my input file (ref.txt)

A1 A2 A3 A4 A5 A6 A7 A8
q1 1 0 0 1 0 1 1 0
q2 0 1 1 0 1 0 0 0
q3 0 0 0 1 0 0 1 1
q4 0 1 0 0 0 1 0 1
q5 1 0 0 0 0 0 1 0
q6 0 0 1 0 1 0 0 1

how should i read this kind of input???