I need to list out the names of the files based on given type. Is there any tool to do that or is there any source code so that i can get the list of the files with given extension.
Example: If ".txt" is given then the output must contain list of all the text files in a specific directory.