Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Re: importing fixed width data

  • To: mathgroup at smc.vnet.net
  • Subject: [mg97540] Re: [mg97511] importing fixed width data
  • From: Yasvir Tesiram <yasvir-tesiram at omrf.org>
  • Date: Sat, 14 Mar 2009 18:17:13 -0500 (EST)
  • References: <200903141042.FAA13132@smc.vnet.net>

G'day,
Try ReadList or use options with Import, for example, Import["file",  
{"Text", "Words"}]

Assuming you are using V7 you will find more information on he  
following page from the Help- -> Docmentation Center.

tutorial/ImportingAndExportingFiles


Cheers
Yas

On Mar 14, 2009, at 5:42 AM, swiftset wrote:

> Hi, I'm trying to import data from a file where the fields are stored
> in a fixed width format. The Import["file", "Table"] command is the
> closest I can get to what I'd like, but then the data is divided using
> whitespace, so I get a lot of extraneous fields, and no way to tell
> whether what Mathematica imported as two fields is actually just one
> that contained a whitespace.
>
> Any ideas on how to proceed?
>



  • Prev by Date: Re: The "Go Back" Button doesn't work
  • Next by Date: Re: How to map a list on function
  • Previous by thread: importing fixed width data
  • Next by thread: Re: importing fixed width data