How to convert file name into text file

I know the title may confuse you.
What I want is to be able to obtain a text file that would contain all the file names from a directory.
I don't know how to explain better but I think you guys understand what I mean.
A solution to convert file name into text file in a simple way.
Someone told me I could have done this in Linux, but I am using Windows 7 so perhaps you here at Techyv have a proper solution for me.
