Hey there everyone,
My roommates and I (There are six of us in total) just recently built a media server for our house that's hooked up to the TV in our living room and is wired into the network so everyone can access it from any computer in the house. The one problem I've been having with it is browsing through the 1000+ movies that we have trying to decide which to watch.
Being an entry level programmer I figured I would attempt to employ my newfound skills to solve this problem and write a program to randomly choose a movie for me. I wrote out a basic plan of what functions I would need and came up with the following.
A function to Get a full list of the movies in question, a randomizing algorithm (I want to try and figure out something a little more random than the rand() function), and a function to choose the movie and report which movie has been chosen.
Once I'd figured out what functions I'd need I sat down ready to write the code and realized I had absolutely no clue where to start. I guess the first question I have is how I would compile a list of all the movies without having to enter the title of each one into a text file manually. We currently have all the movies divided into one individual folders (ie. "E:\Movies\Fight Club\Fight Club.avi") and series are all in one folder as well (ie. "E:\Movies\Star Wars\Episode I.avi" "E:\Movies\Star Wars\Episode 2.avi").
I figure in order to get all of the movies into a single list I'm also going to need a way for the program to tell when it's at the bottom most level of the folders and can add the avi names to the list of movies.
Any help that or a nudge in the right direction would be awesome! Thanks guys