how to make arrays from text file in mathematica??

*To*: mathgroup at smc.vnet.net*Subject*: [mg97646] how to make arrays from text file in mathematica??*From*: Nishant <voneur at gmail.com>*Date*: Tue, 17 Mar 2009 05:04:04 -0500 (EST)

Hi Iv searched for this on the wolfram tutorials but could not find an answer to this. What I have to do is to convert a text file having a format like this: a b 123 into a graph with a and b as the nodes and 123 as the weight.. I thought of putting a and b in an array and 123 as the value and then creating a graph from it..the problem is Readlist would read each line as a separate record..and hence making an array out of it is seemingly difficult.. What could be the solution??