get file name

Hi,
How to read a names in the folder , for example data is folder in that i'm having three files they are harsha , mania and keyboard. Each files will run separately , so how to get these names and store in file .Please help any one .


Thanks in advance
Topic archived. No new replies allowed.