RE : writing into and reading from fifos



May be "newline(stream)" or "freshline(stream)"

Laurent.

> -----Message d'origine-----
> De?: maxima-bounces at math.utexas.edu [mailto:maxima-bounces at math.utexas.edu] De la part de
> Fabrizio Caruso
> Envoy??: vendredi 14 septembre 2007 15:52
> ??: maxima at math.utexas.edu
> Objet?: [Maxima] writing into and reading from fifos
> 
> Hi
> 
> I have managed to write a simple C++ server program that does
> some fast computationn using the GMP and NTL libraries.
> This program in this first version only uses Unix fifos (named pipes)
> to comunicate with the client(s).
> In order to use it I need to write and read from fifos,
> which for this purpose could just be considered as files.
> Maybe this server could be very useful for othe people.
> Its only limitation, as it is now, is that it will only work
> on Unix systems.
> 
> 
> I have asked similar questions in the past
> and I am sorry if I am partially repeating myself.
> I haven't been able to find the necessary information
> by using "describe".
> 
> 
> I would like to read and write strings into such files.
> 
> I can open for writing a file as a stream by
> "f : openr(<path>)"
> 
> I can read it by
> "readline(f)"
> 
> but I don't know how to append/write data into this file.
> 
>     Fabrizio
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima