i need to get the elements of a file,elements are separeted by tab.

suppose myfile.txt
2.389 .809 .320 . .
.
.

i need to get it into
like
b[1][]=2.389
b[2][]=..809
b[1][]=.320
.
.
.
etc

plz help me by sending code in c++.