In Finder:
select all files in the current folder (cmd+A), copy (cmd+C), open any text editor, and paste (cmd+V)
If u use the TextEdit, go to Edit => Paste and Match Style.
In Terminal:
Navigate to the current folder: cd path/to/folder (you can drag n drop the folder inside the Terminal to copy the path)
And type this command...
ls > list.txt
This will output the result of ls inside a new list.txt file... (it'll be created in the current directory)