MathGroup Archive 2002

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

Search the Archive

Re: file.txt and/or file.xls to take file in Mathematica


At 02:41 AM 2/6/2002, Milo wrote:

>         Hi, everybody.
>
>         Anybody could help me, please?
>
>         I have one file in file.txt and/or file.xls,
>
>       900              0         -0,007      0,006041       2900000
>       901              0            0           0,006041       2900000
>       902              0          -0,01      0,006041       2900000

(snip)

>       918              0          0,022      0,006041       2900000
>       919              0          0,021      0,006041       2900000
>       920              0          0,012      0,006041       2900000
>
>and I need to take this form,
>
>file={{900, 0,  -0.007, 0.00604,    2900000},
>        {901,  0,    0,        0.006041,  2900000 }
>        {902 , 0,  -0.01,    0.006041,  2900000}
>        {903 , 0,  -0.016, 0.006041,  2900000}
>        {904 , 0,   0.015 , 0.006041,  2900000}}
>
>         How can I do?
>         Thanks in advanced.
>         Milo

Import["file.txt", "Table", ConversionOptions->{"NumberPoint"->","}]

-Dale



  • Prev by Date: Re: The prime factors of n.
  • Next by Date: Re: NDSolve with side conditions:
  • Previous by thread: Re: file.txt and/or file.xls to take file in Mathematica
  • Next by thread: Comment's Style