MathGroup Archive 2002

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

Search the Archive

Re: Re: How to read mixed-type data from external files?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg37776] Re: [mg37733] Re: How to read mixed-type data from external files?
  • From: Tomas Garza <tgarza01 at prodigy.net.mx>
  • Date: Tue, 12 Nov 2002 03:13:45 -0500 (EST)
  • References: <aqdjo0$si$1@smc.vnet.net> <aqfo6s$71d$1@smc.vnet.net> <200211101038.FAA11788@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Have you checked that your file "data" has the extension "csv"? If not, of
course it will not be recognized.
Tomas Garza
Mexico City
----- Original Message -----
From: "Wen-Feng Hsiao" <wfhsiao at libra.seed.net.tw>
To: mathgroup at smc.vnet.net
Subject: [mg37776] [mg37733] Re: How to read mixed-type data from external files?


> Thanks for all your helps.
>
> I am using Mathematica 4.0. It might not support Import function,
> since the expression you proposed to me cannot work.
>
> In[2]:=
> Import["data.csv"]
>
> Import::guess: Could not guess format from channel data.csv.
>
> Out[2]=
> Import["data.csv"]
>
> In[3]:=
> Import["data.csv", "CSV"]
>
> Import::format: "CSV" is not a recognized Import format.
>
> Out[3]=
> Import["data.csv", "CSV"]
>
> Fortunately, Sseziwa's method works fine to me.
>
> {ToExpression[#[[1]]],#[[2]],Sequence@@Table[ToExpression[#[[i]]],{i,3,8
> }]}&/
> @ReadList[strm,Word,WordSeparators\[Rule]{","},RecordLists\[Rule]True]
>
>
> Wen-Feng Hsiao
>
> ----------
> Jens-Peer Kuska <kuska at informatik.uni-leipzig.de> wrote in message
news:<aqfo6s$71d$1 at smc.vnet.net>...
> > Hi,
> >
> > Import["data.css", "CSV"]
> >
> > ??
> >
> > Regards
> >   Jens
> >
>
>




  • Prev by Date: RE: Idempotence
  • Next by Date: Re: HELP! Why are the solutions from NDSolve and DSolve not identical?
  • Previous by thread: Re: How to read mixed-type data from external files?
  • Next by thread: Re: Re: How to read mixed-type data from external files?