[GAP Forum] AppendTo problem with large strings

Leonard Soicher l.h.soicher at qmul.ac.uk
Mon Mar 27 20:30:51 BST 2006


Dear Helge Ruddat, Dear GAP-Forum,

In GRAPE 4.2 I use text-file streams to communicate with 
external programs, with print formatting switched off
(via the GAP function  SetPrintFormattingStatus ).
For an example of this, look at the function  AutGroupGraph
in  pkg/grape/lib/grape.g 

Best wishes,
Leonard

On Fri, Mar 24, 2006 at 04:23:10PM +0000, 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 Ruddat
> 
> -- 
> Helge Ruddat / Tivolistraße 16 / 79104 Freiburg i.Br.
> Tel.:  +49 761 2925203		Uni.:     +49 761 2035620
> mobil: +49 176 20155350		Heimzone: +49 761 1528137
> 
> _______________________________________________
> Forum mailing list
> Forum at mail.gap-system.org
> http://mail.gap-system.org/mailman/listinfo/forum



More information about the Forum mailing list