Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1998
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1998

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

Search the Archive

Re: How to import DTA files conatining comment lines starting with '#'

  • To: mathgroup at smc.vnet.net
  • Subject: [mg14119] Re: How to import DTA files conatining comment lines starting with '#'
  • From: Timo Felbinger <timof at uranos.quantum.physik.uni-potsdam.de>
  • Date: Fri, 25 Sep 1998 03:15:43 -0400
  • Organization: University of Potsdam
  • References: <6ud2jp$17m@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

On 24 Sep 1998, Joel Wijngaarde <Joel Wijngaarde wrote:

> Hi,
> 
> is there a way  ti import Data Files containing numbers where it's
> possible that certain lines in the file start with an "#", which means
> that this is a comment line and should not be read by mathematica.
> 

On a Unix(-like) system, something like

  ReadList[ "!sed /^#/d < your_file" ]

should filter out the comment lines.

Regards,

Timo Felbinger   (Timo.Felbinger at quantum.physik.uni-potsdam.de) Quantum
Physics Group
Institute of Physics
University of Potsdam, Germany




  • Prev by Date: Re: Plotting (x,y,z) style data
  • Next by Date: Copy and Paste
  • Previous by thread: FindRoot, a big Jacobian, and bivariate probit model
  • Next by thread: Copy and Paste