Try readdlm("g.txt"). In most I cases it will be sufficient. For details,
take a look in the documentation for that function.

2015-02-14 6:14 GMT-05:00 <pip7k...@gmail.com>:

> Hi
> I'm new to Julia and stuck on the following........
>
> I have a text file called "g.txt" with the following saved to it ........
> 1,2,3,4,5,6,7
>
> I was wondering how to get this data into a list eg [1,2,3,4,5,6,7] ... as
> I can then use this in a graph.
>
> For now I have ...
> g = open("g.txt","r")
> print(readall(g))
> close(g)
>
> Not sure where to go from here??
>
> Regards
> P
>

Reply via email to