Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Re: Mathematica 6 specific Import[ ] problem

  • To: mathgroup at
  • Subject: [mg81000] Re: Mathematica 6 specific Import[ ] problem
  • From: fsmirne at
  • Date: Fri, 7 Sep 2007 02:10:39 -0400 (EDT)
  • References: <fbok54$jmu$>

Alex wrote:
> Hello everybody,
> I try to import tab separated data from a filed called bla.txt.
> Import["bla.txt","TSV"] works in principle but tries to convert the
> file content into  numbers.
> One of my entries is the string "1E20", which is falsely converted to
> 1e20.
> In Mathematica 5 I could say Import["bla.txt","TSV",ConversionOptions-
> >{"Numeric"->False}] , but how can I achieve this under Mathematica 6 ??
> ConversionOptions doesn't exist anymore and
> Import["bla.txt",{"TSV", "Numeric" -> False}]   gives the error:
> Numeric->False is not a valid format or element specification.
> Expecting a string, list, or integer.
> Finally, Import["bla.txt", "TSV", "Numeric" -> False]   is also not
> working because Import only accepts 2 arguments.
> Any help is welcomed,
>  Axel

Hi Alex,

Import["filename.txt", "TSV", "Numeric" -> False] is supposed to work
fine and in fact it does:

In[1]:= ImportString["1E20\t1.000\t42", "TSV", "Numeric" -> False] //

{{"1E20", "1.000", "42"}}

Let me know if you have any problems.

Flavio Smirne

  • Prev by Date: Re: How to obtain numberical value from an
  • Next by Date: Re: Why aren't both sides of a surface equally opaque?
  • Previous by thread: Re: Mathematica 6 specific Import[ ] problem
  • Next by thread: Re: Mathematica 6 specific Import[ ] problem