Karim Belabas on Thu, 25 Feb 2016 20:05:43 +0100 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Write line break |
* Ariel Martin Pacetti [2016-02-25 19:43]: > > This is a stupid question that I am sure has been answered before, but how > can I write a next line with the write() command? (I would like to have a > one line vector entry per line to be able to read the file, but also to be > able to load it from GP latter). > > write("filename",'\') > > and similars do not work.... 1) successive write command will implicitly add a newline (each result will be written on a different line) 2) you can explicitly use "\n" to print or write a newline Cheers, K.B. -- Karim Belabas, IMB (UMR 5251) Tel: (+33) (0)5 40 00 26 17 Universite de Bordeaux Fax: (+33) (0)5 40 00 69 50 351, cours de la Liberation http://www.math.u-bordeaux.fr/~kbelabas/ F-33405 Talence (France) http://pari.math.u-bordeaux.fr/ [PARI/GP] `