Thread: Number of files in a folder

  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    39

    Number of files in a folder

    Hello


    I need a Api or someway to find out how many files have on a folder, and if possible get their names.


    Thanks

  2. #2
    Registered User C_ntua's Avatar
    Join Date
    Jun 2008
    Posts
    1,853
    Read the FAQ or google to learn how to use directories in C. Like: http://faq.cprogramming.com/cgi-bin/...&id=1044780608
    Just include <dir.h>, <stdio.h>

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 0
    Last Post: 11-09-2008, 02:34 AM
  2. adding a number to a number
    By bigmac(rexdale) in forum C Programming
    Replies: 11
    Last Post: 10-24-2007, 12:56 PM
  3. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 03:30 PM
  4. Code to display files and sizes of any folder
    By CrackDown in forum Linux Programming
    Replies: 0
    Last Post: 04-22-2003, 11:23 AM
  5. writing files to a specified folder
    By jverkoey in forum Windows Programming
    Replies: 5
    Last Post: 03-29-2003, 11:09 PM