Bill Allombert on Wed, 11 Aug 2004 20:53:29 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: reading files


On Tue, Aug 10, 2004 at 04:23:49PM +0200, Rampal S. Etienne wrote:
> Hi,
> 
> This is perhaps a stupid question, but how do I read data files into gp? 
> For example, I want to create a vector that has as its elements numbers I 
> have in a file. I tried several things with read, but get error messages 
> all the time.

Depending on the format of the input file,
you can try something like (assuming your file is called file):
V = extern("echo [`paste -sd, file`]")

Cheers,
Bill.