Thanks a lot but
there must be a problem:
if I do as you suggest I get the
follwoing error message:
f : ?open("/home/caruso/Work/code/maxima/test.out")$
Maxima encountered a Lisp error:
Error during processing of --eval option "(cl-user::run)":
The value |&/home/caruso/Work/code/maxima/test.out|
is not of type
(OR (VECTOR CHARACTER) (VECTOR NIL) BASE-STRING PATHNAME STREAM).
Automatically continuing.
To reenable the Lisp debugger set *debugger-hook* to nil.
Fabrizio
On Thu, 16 Nov 2006, Richard Fateman wrote:
>
> You can try this
>
> f : ?open (?"c:/temp/foo.txt")$
>
> ?read(f);
> ?read(f);
> ?read(f);
>
> Etc.
>
> > -----Original Message-----
> > From: maxima-bounces at math.utexas.edu [mailto:maxima-
> > bounces at math.utexas.edu] On Behalf Of Fabrizio Caruso
> > Sent: Thursday, November 16, 2006 3:40 AM
> > To: maxima at math.utexas.edu
> > Subject: reading data from a file
> >
> > Sorry for this question but
> > have tried "describe" with
> > file, load, read, open, etc...
> > and could not file
> > anything useful.
> >
> > I need to read some data from an ascii file
> > and put it into some Maxima variables.
> >
> > For example from a file containing a some lines
> > seperated by CR and each containing some
> > numbers separated by spaces.
> >
> > Writing into a file is easy in Maxima
> > (for example "with_stdout" does it)
> > but I can't find a way to read from a file.
> >
> > Fabrizio
> >
> >
> > _______________________________________________
> > Maxima mailing list
> > Maxima at math.utexas.edu
> > http://www.math.utexas.edu/mailman/listinfo/maxima
>