MathGroup Archive 2010

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

Search the Archive

reading expressions in a file

  • To: mathgroup at smc.vnet.net
  • Subject: [mg108189] reading expressions in a file
  • From: Maria Davis <arbiadr at gmail.com>
  • Date: Wed, 10 Mar 2010 01:44:37 -0500 (EST)

Hi ;

I have a file .txt generated from a software, each line of the file
includes an expression and  the last line is empty.
How can Mathematica read lines of the text file and include each line
in the same list without reading the last empty line  .

I used :
MYLIST = ReadList["file.txt", Record,  RecordSeparators -> {}]

But it still reading the empty line.

Thanks.


  • Prev by Date: Re: Using NMinimize on a vector
  • Next by Date: Re: Title and subtitle on headers of every page in PDF export ?
  • Previous by thread: Struggling with FindFit for a model which takes results from coupled ODEs as arguments
  • Next by thread: Re: reading expressions in a file