> < ^ Date: Sun, 22 Apr 2001 02:31:00 +1000 (EST)
> < ^ From: Greg Gamble <greg.gamble@math.rwth-aachen.de >
< ^ Subject: Re: printing strings
On Fri, Apr 20, 2001 at 02:17:22PM -0500, Markus Pueschel wrote to GAP-forum:
> Hello,
>
> I have the following problem (GAP3). When printing a
> long string to a file using the function PrintTo, the
> string is broken at a certain length and a "\" is inserted.
> It looks like: (this was a single string)
>
> 246810121416182022242628303234363840424446485052545658606264666870727476788082\
> 848688909294969810010210410610811011211411611812012212412612813013213413613814\
> 014214414614815015215415615816016216416616817017217417617818018218418618819019\
> 2194196198200
>
> How can I avoid the line-breaking or at least the insertion of
> backslashes?

Dear Markus,

There is the switch -x with which you can set the length of lines before
GAP inserts a \ and a linebreak. If you have some idea of an upper limit
on the length of your strings this should do you e.g. start GAP with

gap -x 1024

(and this is available in GAP3).

  Regards,
  Greg Gamble
___________________________________________________________________
Greg Gamble   __________________   mailto:gregg@math.rwth-aachen.de
Lehrstuhl D fuer Mathematik                     Tel: +49 241 804545
Templergraben 64
52062 Aachen, Germany   http://www.math.rwth-aachen.de/~Greg.Gamble
___________________________________________________________________

> < [top]