Automatically read file names in a folder
Posted: Thu Mar 11, 2010 12:53 pm
Hi Guys,
I have yet another weird question. If I tell eviews the location of a particular folder, is there a way to make it spell out all the file names within a folder and record the names into a table or something? Let me give you an example:
If I have a folder called "C:/eviews7/ABC/" and there are n number of csv files in it, is there a way to write a piece of code such that eviews would create a (nx1) table where each cell contains a unique file name (stripped off the .csv part, which I know how to do as long as I could read it one by one as a string)?
If you have any ideas/hints/clues, please let me know. Thanks.
Tchaithonov
I have yet another weird question. If I tell eviews the location of a particular folder, is there a way to make it spell out all the file names within a folder and record the names into a table or something? Let me give you an example:
If I have a folder called "C:/eviews7/ABC/" and there are n number of csv files in it, is there a way to write a piece of code such that eviews would create a (nx1) table where each cell contains a unique file name (stripped off the .csv part, which I know how to do as long as I could read it one by one as a string)?
If you have any ideas/hints/clues, please let me know. Thanks.
Tchaithonov