Calling in files

How do i code a search through my working directory in order to use a switch case so that i can display cases of files to open...

In this case i have 3 .csv files that i want the user to be able to chose the file they want to open.

ie case 1:(open) x.csv
case 2:(open) y.csv
switch only works to compare an integer to a static number of options, so it won't work for this.
There is no standard way of traversing a directory (yet). You'll have to use either Boost, or system calls.
Topic archived. No new replies allowed.