I want to export all the filenames of a directory into a fil开发者_JAVA技巧e.Is there any idea on how to implement this?
In linux you can do this as find /path/to/dir -maxdepth 1 -type f > filenames.txt
. Without much more to go on, I can't really tell you much else.
What Operating System are you doing this on? Do you need to do it in some program or from the command line? Is there some format to the text file? These are things you need to include in the question to get better answers.
精彩评论