Thread: Selecting/Browsing to find a file

  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    7

    Selecting/Browsing to find a file

    I have a program that requires the user to enter the entire directory and filename of a file in order to get information from it. It can be located anywhere on the harddrive.

    So I was wondering if/how to make this an easier process for the user rather than having to type in x:\folder\folder2\folder3\filename.txt in the program.

    Is there a way to allow the user to browse through folders to find a file, or just any process to make this more simple maybe? The only way I can think of is creating a GUI but I really have little to zero experience with that in C.

    Any help is appreciated.

  2. #2
    Registered User valaris's Avatar
    Join Date
    Jun 2008
    Location
    RING 0
    Posts
    507
    I believe these are called shells. You don't need a gui to make directory navigation simpler, take DOS for example. You could implement a shell program if you really wanted that took commands to switch or list directories based on what relative root the user was in. This would make for the simplest "browsing" without a gui.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. help with text input
    By Alphawaves in forum C Programming
    Replies: 8
    Last Post: 04-08-2007, 04:54 PM
  2. #include header files or .cpp files?
    By DoctorX in forum C++ Programming
    Replies: 3
    Last Post: 12-23-2006, 12:21 PM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  4. archive format
    By Nor in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-05-2003, 07:01 PM
  5. Making a LIB file from a DEF file for a DLL
    By JMPACS in forum C++ Programming
    Replies: 0
    Last Post: 08-02-2003, 08:19 PM