I found a solution to this, in the file I changed all \n to %nl% then after reading the string from the file I use:

STRING* linefeed="\n";

...

str_replaceall(gs,"%nl%",linefeed);

where gs is the string just read from the file. Now gs contains a string with \n which work OK

Last edited by Ercoles; 12/10/12 19:21.