Yes, you're right John. I'm using Windows and viewing with Notepad. File appears OK if I use Sublime Text or Notepad++.
The file contains LF only, which apparently Notepad doesn't interpret properly. Interestingly, the equivalent C code (Visual C++ for Windows) creates CR/LF pairs. Presumably this is Microsoft specific, specifically for Windows?? On Monday, December 8, 2014 2:40:55 PM UTC+11, John Myles White wrote: > What platform are you on? What's the hex dump of the file that gets > created? Are perhaps Unix newlines being used, but you're using something > like Notepad? > > -- John > > On Dec 7, 2014, at 7:37 PM, Greg Plowman <greg.p...@gmail.com > <javascript:>> wrote: > > Hi > > Are newlines missing from the following output to file? Or am I missing > something? > > fileout = open("test.txt", "w") > println(fileout, "Hello") > println(fileout, "World") > close(fileout) > > File test.txt contains: > HelloWorld > > and not what I expected: > Hello > World > > Cheers, Greg > > >