On Wed, 4 Aug 1999, Dominique Busso wrote:

> 
> We need to generate a text file that will be used on a Sun / Solaris. 
> We tried to use CR for end of line character, but it does not generate an 
> end of line under Solaris... When we copy/paste the character from a file 
> coming from the sun, it generates an end of line in the script, thus an 
> error...
> Does anybody have an idea how to solve this? thanks!

I'm not sure I understand the problem from the above description, but
most likely the issue is just that different end-of-line characters
are used on the different platforms.  UNIX uses ASCII 10 (aka line
feed), MacOS uses ASCII 13 (aka return), and DOS/Windows uses both
(CRLF).  If you open a file for text write (the default), the
appropriate translations are made automatically.  This should also
happen if you use cut/copy/paste to move text from one application to
another.  If you open a file for binary write, however, you have to do
the translations yourself.  Use the replace command with whatever
combination of numToChar(10) and numToChar(13) is appropriate.
  Regards,
    Scott

> Dominique Busso
> 
> OpenMind International
> http://www.openmind.fr
> ______________________
> 

********************************************************
Scott Raney  [EMAIL PROTECTED]  http://www.metacard.com
MetaCard: You know, there's an easier way to do that...

Reply via email to