[GAP Forum] AppendTo problem with large strings
Alexander Konovalov
alexk at mcs.st-and.ac.uk
Tue Mar 28 09:15:15 BST 2006
Dear Helge,
You can use the 'SetPrintFormattingStatus' operation, which sets
whether the output will be formatted with line breaks and indentation,
or not.
There is also an operation 'PrintFormattingStatus' that can be used
to get information about the current setup for this option.
Please see their description and examples in the GAP Manual in your
GAP installation or online at the page
http://www.gap-system.org/Manuals/doc/htm/ref/CHAP010.htm#SSEC004.8
Also, for writing huge amounts of data efficiently with GAP the
utility functions 'PrintTo1', 'AppendTo1' and 'FileString' from the
GAPDoc package by Frank Lübeck and Max Neunhöffer
(http://www.gap-system.org/Packages/gapdoc.html) may also be
interesting for you.
Best wishes,
Alexander Konovalov
On 24 Mar 2006, at 17:23, Helge Ruddat wrote:
> Dear GAP supporters!
>
> I am trying to write a large matrix into a text file in such a way
> that scilab is able to read it as input. For this I need to write
> long strings (about 600 characters) into the file and I am doing this
> via AppendTo( filename, string ).
> I realized that this function inserts backslashes and newlines to
> cut my
> strings into smaller pieces, although I do not intend this. It also
> is not
> documented in the "AppendTo - function - documentation".
> Funny is, that the length of the dissected pieces correllates with
> the width of my gap terminal window. When I tried to increase
> the width of my gap window significantly, gap quit with a
> memory access error.
> Can someone help me?
>
> I have version 4.4.6.
>
> Thanks in advance,
> Helge
>
> --
>
> _______________________________________________
> Forum mailing list
> Forum at mail.gap-system.org
> http://mail.gap-system.org/mailman/listinfo/forum
More information about the Forum
mailing list