[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: looping over all files in a folder
I want to read into Stata a bunch of text files, that are all sitting
in the same folder. I've written a do-file that does the reading in
part, but now I'm looking for a way to loop this do-file over all the
files in the folder.
I have seen the -dir- command which gives me a list of all the files
in the folder, but after that I'm pretty much stuck. I think I can
copy and paste this list into my editor and then play with it but it
seems like a very inefficient method. Especially if new files are
added into the folder at a later time.
Thanks for any ideas,
* For searches and help try: