Question: Renaming multiple data files in the form 1.txt, 2.txt....n.txt

Hi to you all, I'm brand new to this forum and I hope you could help me.

I wrote a Maple14 worksheet which perform data analysis, reading information from a set of file (usually 50 files) coming from an acquisition device. They are text file but the acquisition software produce them in the form:

namefile-0Ep.irr, namefile-1Ep.irr .... namefile-49Ep.irr

where "namefile" is the name I choose when i start the acquisition.

In order to perform the analysis I need to change the file name and its extension in the form 1.txt...50.txt and at the moment I use an external batch renamer application to do this. I wonder if it could be possibile to do this inside my Maple worksheet and if you could suggest me how to do it.

Thanks for your support

Riccardo

 

Please Wait...