Lines with more than 512 characters

lut lei's icon

I'm using javascript to read from textfile.

var t = t.readline();

and then writing the string to another file

f.writeline(t);

Problem is that when the source have line containing more than 512 characters, a linebreak is inserted. Is there a way to avoid this?

Cheers