• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Write to file - another question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Write to file - another question


  • Subject: Re: Write to file - another question
  • From: "Arthur J Knapp" <email@hidden>
  • Date: Tue, 27 Feb 2001 20:24:24 -0500

> From: email@hidden
> Subject: Write to file - another question
> Date: Tue, 27 Feb 2001 16:40:46 -0600

> This has to do with using a text file created on a Mac on a windows box. When
I am writing to a file, and add a return to the end of a line like this
>
> write return to file starting at eof

I've done this in an overly pedantic manner:

property kMac : "Mac"
property kUnix : "Unix"
property kWin : "Win"

property kMacEnd : return
property kUnixEnd : ASCII character 10
property kWinEnd : return & ASCII character 10

on writeln(fil, str, cr)
write (str & cr) to fil starting at eof
end

writeln( fileRef, "Hello World", kWin )

--
{
Arthur J Knapp, of STELLARViSIONs ;

http://www.STELLARViSIONs.com ;

mailto:email@hidden ;

"...it's not my birthday,
it's not today..."
}


  • Prev by Date: Re: Unspecified unit returned by gestalt call
  • Next by Date: Re: global variable not being recognized by script object subroutine
  • Previous by thread: Re: Write to file - another question
  • Next by thread: Re: Write to file - another question
  • Index(es):
    • Date
    • Thread