Reading colums with tab spaces
Hello All,
I have to read a file which contains colums such as below.
Code:
Net Name #Pins Driver Recvs. (block, pin)
0 i_63_ 3 ( 0, -1) ( 180, 0) ( 226, 0)
1 i_50_ 14 ( 1, -1) ( 218, 0) ( 245, 0) ( 253, 0) ( 266, 0) ( 287, 0) ( 291, 0) ( 302, 1)
I need to read the Net, then the Driver column and then the Recvs colum i.e. I need 0 then (0,-1) then (180,0) and then (226,0). I need these variables to compare with another file so I would typically require them to be stored as ints and after each line I compare them wioth another file then read the next line and so on. The number of colums is not fixed and the columns are separated by tabs.
I am a little confused as to how to proceed. Any help?
Thanks all.