Thread: get files in a folder and more

  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    45

    get files in a folder and more

    Hi,

    How do i get the all files/folders in a given path (1 level so not files in the folders)?
    Also check if an item is a file or a folder?

    All in win32

    Cheers
    Alex

  2. #2

  3. #3
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    >>All in win32<<

    Please post your windows specific questions in the windows board. Moved.

    edit: This thread discusses the same thing:

    http://cboard.cprogramming.com/showthread.php?t=82593
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  4. #4
    Registered User
    Join Date
    Sep 2006
    Posts
    11
    try out dirent.h and the function 'findnext()'
    It may help

Popular pages Recent additions subscribe to a feed