MathGroup Archive 1992

[Date Index] [Thread Index] [Author Index]

Search the Archive

Can't get RecordSeparators t

  • To: mathgroup at
  • Subject: Can't get RecordSeparators t
  • From: Simon Chandler <simonc at>
  • Date: Thu, 13 Aug 92 19:57:03 +0100

Dear Mathematica users,

I have a need for mma to read a text file containing some expressions
(not necessarily numbers) separated by commas i.e.,


(Excluding the "")

To do this I tried ReadList[filename,RecordSeparators->{","}]
However, this gave me an error

   Read::readt: syntax error reading 1,2,3,4,5 from filename

In fact I couldn't get RecordSeparator to work with anything other
than a newline character.  To demonstrate this try the following...

 !! testfile



    Read::readt: Syntax error reading 1,2,3,4,5 from test11.


Then try using a newline delimiter "\.0d". Also try "\.89" for example.

Where's my silly mistake ??????
Thanks in advance for your help,

Simon Chandler
Hewlett-Packard Ltd (CPB)
Filton Road
Stoke Gifford
BS12 6QZ

Tel: 0272 228109
Fax: 0272 236091
email: simonc at

  • Prev by Date: Re: Hello World
  • Next by Date: Binary data files
  • Previous by thread: Re: timing of Table operation - a functional form
  • Next by thread: package submission