Re: Mathematica 6 specific Import[ ] problem
- To: mathgroup at smc.vnet.net
- Subject: [mg81000] Re: Mathematica 6 specific Import[ ] problem
- From: fsmirne at gmail.com
- Date: Fri, 7 Sep 2007 02:10:39 -0400 (EDT)
- References: <fbok54$jmu$1@smc.vnet.net>
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] // InputForm Out[1]//InputForm= {{"1E20", "1.000", "42"}} Let me know if you have any problems. Flavio Smirne