I am having problems splitting the filepath and just getting the filenames.
Here is my Code:
file=File.new("files.txt", "w")
file_list=Dir["../path/*txt"]
file.puts file_list
I tried a few different ways to split it, but I keep getting an Array Error,
Best Regards,
AZCards
Please try this snippet:
That give you a list of filenames in specified folder without ‘txt’ extension.