Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'Read Multi-Files' topicStudent Support Forum > General > "Read Multi-Files"

Next Comment >Help | Reply To Topic
Author Comment/Response
12/21/07 08:57am

I use the command:
fp = OpenRead["C:\\Exp\\data1.txt"]
to read the content of the file data1.txt.
The file contain some text and data in table form.

The problem for me is that I can not read all the files in folder Exp by using:
filedata = FileNames["*"]
fp = Import[filedata, Text]
or fp = OpenRead[filedata]

Could you please tell me how to solve the problem for reading the contents of all the file in a folder.
Thank and best regards,


URL: ,

Subject (listing for 'Read Multi-Files')
Author Date Posted
Read Multi-Files Lai 12/21/07 08:57am
Re: Read Multi-Files yehdua ben-s... 12/22/07 08:41am
Re: Read Multi-Files Peter Pein 12/22/07 1:57pm
Next Comment >Help | Reply To Topic