Mathematica Technical FAQs Services & Resources / Mathematica / Systems & Installation / Macintosh
-----
 /
OS X
*Mathematica
*Network Mathematica
*webMathematica
*gridMathematica
*Personal Grid Edition
*Wolfram Workbench
*Wolfram Education Group
*Application Packages
*Mathematica for Students
*Mathematica CalcCenter
*Publicon
*A New Kind of Science Explorer
*Mathematical Explorer
*Mathematica Teacher's Edition
*Calculus WIZ
*Mathematica Player
*Ask about this page
*Print this page
*Email this page
*Give us feedback
*
Sign up for our newsletter:

Why is ReadList having trouble reading file I've moved from OS 9?

Carriage returns (\r) and line feeds (\n) are both commonly used to denote End-Of-Line (EOL) in Mac OS X. The Mathematica 4.1.5 kernel considers only \n to be the ending of a line. Files with mixed EOL characters can affect kernel functions like ReadList that separate records by the line ending. Problems might occur with files moved from Mac OS 9.

Workaround

ReadList can recognize \r or \n as an end-of-line character; however, this could cause problems if the user has both characters in a file. Because of this, it is recommended that RecordSeparators always be set to choose the appropriate case.

Download this FAQ as a Mathematica 5.2 Notebook






 © 2008 Wolfram Research, Inc.  Terms of Use  Privacy Policy | [ja]