cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Calling in files
Calling in files
May 15, 2009 at 10:43am UTC
chemser101
(4)
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
May 15, 2009 at 11:15am UTC
helios
(17574)
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.