Carriage Return
Hi,
when I write data to a text file, the CR or CRLF doesn't work.
e.g.
out = new FileWriter( "dmy.txt" );
out.write( "line1" );
out.write( "\n" );
out.write( "line2" );
out.close();
I'm using WinXP and the Basic Edition v.4. I also tried '\n' and "\n\r", but it is just ignored. What am I doing wrong ?
Thanks
Frank
Carriage Return
Ah! And I use EditPad Lite. Good eye, timz.
Carriage Return
If you're using notepad to view your output it does not translate the newline. Try using wordpad.
Carriage Return
Frank183,
Hm...I can't seem to replicate the behavior you're experiencing. It's working as expected copying and pasting your script.
Are you using the JRE that shipped with screen-scraper? Are any errors thrown either in the workbench log or any of the logs within the log folder?
-Scott