Enter & Preserve UNIX linefeeds on Mac OSX
rcozens at pon.net
Fri Dec 6 12:54:01 EST 2002
>How To Enter and Preserve char(10) line breaks on a file saved on Max OSX?
replace return with numToChar(13) in sourceText
replace return with numToChar(13)&numToChar(10) in sourceText
-- Unix needs no conversion: internal line ends are char(10) on all
put sourceText into URL ("binfile:"&convertedFile)
The key is "binfile": the prevents the MC engine from saving the text
with platform-specific line ending.
CCW, Serendipity Software Company
"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."
from "The Triple Foole" by John Donne (1572-1631)
More information about the Use-livecode