MathGroup Archive 2003

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

Search the Archive

how import data to mathematica????

  • To: mathgroup at smc.vnet.net
  • Subject: [mg43609] how import data to mathematica????
  • From: "sadini" <kepis82 at hotmail.com>
  • Date: Tue, 23 Sep 2003 04:02:01 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

hello

how to import data from any file at my computer like from word, excel, 
or another file

i'm very glad if you all can help me

at below this my running program about import data form word and notepad

i'm just get import data from notepad but not another file

are this because my address file not complete or what???

In[23]:=Import["C:\My Documents \try.txt", Text]
RowBox[{\(Import::"format"\), \(\(:\)\(\ \)\), "\<\"\\!\\(Text\\) is not 
a \
recognized Import format. \\!\\(\\*ButtonBox[\\\"More.\\\", \
ButtonStyle->\\\"RefGuideLinkText\\\", ButtonFrame->None, \
ButtonData:>\\\"Import::format\\\"]\\)\"\>"}]\)
Out[23]=Import[C:\My Documents ry.txt, Text]
In[12]:=!! C:\My Documents\try.txt
RowBox[{\(General::"noopen"\), \(\(:\)\(\ \)\), "\<\"Cannot open \
\\!\\(\\\"C:\\\\\\\\My Documents\\\\\\\\try.txt\\\"\\). =
\\!\\(\\*ButtonBox[\\\
\"More.\\\", ButtonStyle->\\\"RefGuideLinkText\\\", ButtonFrame->None, \
ButtonData:>\\\"General::noopen\\\"]\\)\"\>"}]\)


just are successful

In[25]:=Import["C:\Documents and Settings/try.txt"]
Out[25]=
1
2
3
5
In[31]:=
Import["C:\Documents and Settings/DATA.txt", "Words"]
RowBox[{\(Import::"nffil"\), \(\(:\)\(\ \)\), "\<\"File not found during 
\
\\!\\(Import[\\(\\(\\\"C:\\\\\\\\Documents and Settings/DATA.txt\\\", \
\\\"Words\\\"\\)\\)]\\). \\!\\(\\*ButtonBox[\\\"More.\\\", \
ButtonStyle->\\\"RefGuideLinkText\\\", ButtonFrame->None, \
ButtonData:>\\\"Import::nffil\\\"]\\)\"\>"}]\)
Out[31]=$Failed

thanks for your help

bye



  • Prev by Date: Re: Forcing a Fit through a Data Point (Mathematica 5)
  • Next by Date: Re: Simplify doesn't factor out 16 :-(
  • Previous by thread: Re: Mathematica commands needed to solve problem in Set Theory!
  • Next by thread: Eigenvalues, any suggestions?