in reply to Generating Macintosh Text Files

Just a text file? DOS, *nix, and Mac all use ASCII text files. The only difference is in the line endings:

# DOS/Win32 print "Hello, world!\r\n"; # *nix print "Hello, world!\n"; # Mac print "Hello, world!\r";

MacOS X also uses "\n" for console programs.

----
Reinvent a rounder wheel.

Note: All code is untested, unless otherwise stated