Your reference to "
" leads me to believe you’re on a Mac. EndOfLine now defaults to EndOfLine.Unix, which is chr(10). Try using EndOfLine.Macintosh (chr(13)). Or, switch to TextOutputStream and use WriteLIne.
I couldn’t figure out the output stream. I followed the examples in the language reference, but I kept getting compile errors.
I’m trying to write to a second kinda error log because the timing in my app seems all screwed up. I want to know where in the sequence my errors are occurring.
I tried to find a way to write to the javascript error dialog, but couldn’t, so I’m writing to a secondary file.
when I use "
" I get “comp created
2013-11-20 13:40:34 : 63.224.89.93” Just copied it into this editor and it worked, but in the text file, I get the characters instead of a line feed.
dim cr as int8 = &h0d
dim lf as int8 = &h0a
dim writestream as BinaryStream
writestream.WriteInt8(cr) // Don't on unix.
writestream.WriteInt8(lf) // Unix or DOS.
I chose Int8 which is a signed 8 bit integer… 7 bit ASCII.
thanks guys, but still not working. Got the textOutputStream to work, but still can’t get linefeeds. If I open the text file in Word it’s fine, so that’s good enough for now.
Some editors will understand end of line from other platforms
BBEdit on OS X will read EndOfLine.Macinotsh, EndofLine.Unix & EndOfLine.Windows all as the same & automatically translate them - or you can tell it not to.
Other editors may not - I think Wordpad will but notepad won’t (maybe I have that backwards)