in reply to Cross platform file I/O code

Although there is sometimes a problem reading different formatted files on different operating systems (with the non-standard ways different OS's handle \n) I've never had the slightest amount of trouble writing files. ($/, btw, is the INPUT record separator. $\ is the OUTPUT record separator. A different thing.)

print  FILE "some line\n" is AFAIK completely cross-platform... works as expected on UNIX, MacOS and Windows. I've written code on all three platforms for use on all three and I've never had to worry about it. You probably shouldn't either. :-D

Gary Blackburn
Trained Killer