Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'IImporting then exporting multiple files' topicStudent Support Forum > General > Archives > "IImporting then exporting multiple files"

< Previous CommentHelp | Reply To Comment | Reply To Topic
Author Comment/Response
Zavou
07/18/10 05:33am

In Response To 'Re: Re: IImporting then exporting multiple files'
---------
Hello,

The operation you would like to do is rather a sequence of operations than a mapping. You could use a regular Do operator for instance:

Module[{import,res},
Do[(
import=Import[name];
res=ComputationOnFile[import];
Export[name<>"RES", res];
), {name, myFiles}]]

myFiles must be a list of your filenames (strings)
The result of your computations on files would end up being exported in another file named filenameRES if filename is the name of the file you imported.

These are just ideas, but it would be simpler for you I guess to use Do than Map. Map is better if you need the results from all the files "at the same time" to operate on them all.

I hope I answered properly and helped you out.
Cheers,

Xavier



URL: http://xroudaut.free.fr,

Subject (listing for 'IImporting then exporting multiple files')
Author Date Posted
IImporting then exporting multiple files Roel Stijl 09/24/08 03:50am
Re: IImporting then exporting multiple files Xavier 09/29/08 07:00am
Re: Re: IImporting then exporting multiple files David M 07/03/10 8:57pm
Re: Re: Re: IImporting then exporting multiple ... Zavou 07/18/10 05:33am
< Previous CommentHelp | Reply To Comment | Reply To Topic