I do not know how to do this. Please help. Thanks in advance
That's a very clear question. We do not know if you're using Windows, DOS, Unix, Linux, BeOS, etc...
For Windows, at the console type :
dir C:\temp > contents.txt
This will create a file called contents.txt with a listing of files on C:\temp ( for more options, type dir /? ).
dir C:\temp >> contents.txt
This is almost the same thing as the first instruction, only difference is that if Contents.txt allready exists, its content won't be overwritten by the new one. The new listinbg will be put at the end of what was allready present in the TXT file.
For Linux, once again at the console type :
ls /temp > contents.txt
This will create a file called contents.txt with a listing of files on /temp ( for more options, type ls --help ).
Well done Didou, that's an excellent answer.
Cheers mate. That was a big help. Thanks again