TextEdit is a universal word processor included with OS X. You can create all kinds of text documents using TextEdit. Sometimes you need a list of all the files in the folder and this can be a very useful task.
Malcolm Owen described an algorithm for creating a list of all the files inside the macOS directory in seconds using TextEdit.