Question: How to get name file in directory?

Hi all, how to get name file  in directory?

Example. I have PATH := "D:/api and I want call getFileName(PATH) then return

["equals", "function", "polynomial", "viete"]

or

["equals.txt", "function.txt", "polynomial.txt", "viete.txt"]

Thank you very much.

Please Wait...