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