MathGroup Archive 2009

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

Search the Archive

Re: Reading csv with ;

  • To: mathgroup at smc.vnet.net
  • Subject: [mg99489] Re: [mg99415] Reading csv with ;
  • From: peter <plindsay.0 at gmail.com>
  • Date: Wed, 6 May 2009 05:29:10 -0400 (EDT)
  • References: <200905050942.FAA20801@smc.vnet.net>

Dennis,
a=Import["afile.txt","Table","FieldSeparators"->";"]  ?

Peter

2009/5/5 Dennis <detebeest at hotmail.com>:
> I'm trying to read a csv with mathematica=85
>
> Now the problem is that my system settings are at ";" as seperator instea=
d of more traditional ",". So the it effectively looks like 1;1;1;1 instead=
 of 1,1,1,1
>
> Normally this makes not difference as in most software you can choose the=
 delimiter/seperator before reading a file, so you pick =93separator = ;=
=94 or whatever.
>
> With mathematica however I have so far been unable to do this. Now the qu=
estion of course: how so I change the seperator with mathematica?
>
> Because quite a few files have a =93;=94 separator I would like to find a=
 solution within mathematica instead of changing the system settings.
>
> Cheers,
>
> Dennis
>
>



--
Peter Lindsay


  • Prev by Date: Re: defining consecutive variables
  • Next by Date: Re: defining consecutive variables
  • Previous by thread: Re: Reading csv with ;
  • Next by thread: Re: Reading csv with ;