I am trying to create a program that randomly chooses a folder given a base path, then within the new folder randomly chooses a video to be opened and start playing.
My main issue is finding the number of files within a path given. Is there any function that can do something like that? Or similar? What kind of headers do I need? etc..
The random part is kind of easy. After fixing that issue I would like to know if I am able to launch a video for example while executing the program, which should the last step of my program.
I have searched a lot before posting that, I know you might think its already out there, but I was not able to find something specific enough for what I want.
I hope you can help me.