Re: reading expressions in a file
- To: mathgroup at smc.vnet.net
- Subject: [mg108215] Re: reading expressions in a file
- From: dh <dh at metrohm.com>
- Date: Wed, 10 Mar 2010 06:30:27 -0500 (EST)
- References: <hn7ffp$341$1@smc.vnet.net>
Hi Maria, simply set the option: "IgnoreEmptyLines" -> True Daniel On 10.03.2010 07:50, Maria Davis wrote: > 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. > -- Daniel Huber Metrohm Ltd. Oberdorfstr. 68 CH-9100 Herisau Tel. +41 71 353 8585, Fax +41 71 353 8907 E-Mail:<mailto:dh at metrohm.com> Internet:<http://www.metrohm.com>