Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*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 smc.vnet.net
  • Subject: [mg81011] Re: Mathematica 6 specific Import[ ] problem
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Fri, 7 Sep 2007 02:16:23 -0400 (EDT)
  • Organization: The Open University, Milton Keynes, UK
  • References: <fbok54$jmu$1@smc.vnet.net>

Alex wrote:

<snip>

> 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.

The correct syntax is without the extra curly braces you added around 
TSV and Numeric. The following works fine (myfile.txt, created under 
Window with Notepad, contains two lines of four entries separated by tabs):

In[1]:= Import["myfile.txt", "TSV", "Numeric" -> False ]

Out[1]= {{"10", "100", "1E20", "1000"}, {"10000", "100000",
   "1000000", "10000000"}}

> Finally, Import["bla.txt", "TSV", "Numeric" -> False]   is also not
> working because Import only accepts 2 arguments.

I have no idea what you are talking about. First, Import accepts more 
than two arguments. Second, the option "Numeric" -> False works as 
expected as you can see in the paragraph above. Have you tried it or is 
it just an hunch? Did you get any error/warning message?

-- 
Jean-Marc


  • Prev by Date: Re: question on Max and Min
  • Next by Date: Re: Slow Show/Graphics in v6.0
  • Previous by thread: Re: Mathematica 6 specific Import[ ] problem
  • Next by thread: Re: Mathematica 6 specific Import[ ] problem