| 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, |
|