Use write instead of writeLn ?
Hello, thanks for the replies. I couldn' make it work, your code writes text to different lines on my Linux terminal.
can@host:~/Desktop$ ./testfirst linesecond line 10 third linecan@host:~/Desktop$