Hello,
I have a very simple requirement to list all files from certain folder and write the output in text file. I tried few approaches but it did not work out for me. Maybe i am missing something basic that did not struck my simple brain. can you help me with this request.
For ex:
Folder named <Animals> contains files such as cat, dog, zebra, tiger, lion etc.
I just want to list all files and write the output into animals.txt like below.
animals.txt
cat
dog
zebra
tiger
lion
Thanks in advance !!