opening files with unknown names

lukeaarond lukeaarond at gmail.com
Mon Aug 15 18:08:01 CEST 2011


I have a folder (called DATABASE) with folders with names of unknown names.
In those folders are 2-4 files with one of four names (HS.txt, MM.txt,
PT.txt, or RN.txt). Here is a visual:

DATABASE
   -ENST0004324
        -HS.txt
        -MM.txt
   -ENST0000054
        -HS.txt
        -PT.txt
        -RN.txt

I need to be able to change directories into a folder and open each text
file, and then repeat for every folder in DATABASE. However, I cannot use
chdir() if I do not know the folder names, and cannot use mopen if I do not
know which text file (or even how many) are in that folder. Any suggestions?

Thank you.

--
View this message in context: http://mailinglists.scilab.org/opening-files-with-unknown-names-tp3256145p3256145.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.



More information about the users mailing list