Re: How to add "\n" to text?
Re: How to add "\n" to text?
- Subject: Re: How to add "\n" to text?
- From: Ric Phillips <email@hidden>
- Date: Tue, 02 Oct 2001 14:04:58 +1000
On 2/10/01 1:48 PM, "Jaime Magiera" <email@hidden> wrote:
>
I'm trying to create a text file that's UNIX friendly and can't figure
>
out how to get a new line "\n" written to the text file from the script.
>
>
Any suggestions?
>
>
Jaime
I'm pretty sure the ASCII character-code for a Unix line feed is 10.
Use the ASCII character command in the standard additions.
Set myString to "A line of text"
Set outline to (myString & ASCII character 10)
Which should give you what in PERL would be,
"A line of text\n"
Cheers,
Ric Phillips
Computer Laboratory Support Officer
Faculty of Humanities and Social Sciences
La Trobe University
9479 2792