Thread: C+. List no of files in dir and save to int?

  1. #1
    Stephen Turns stephenturns's Avatar
    Join Date
    Mar 2005
    Posts
    1

    Question List number of files in a dir and save to an int?

    G'day,
    Im new to c++ and im creating a program for my old dad, who is new to computers, that can automatically, when executed, copy files from his digital camara to a pre-selected location on his hard disk.

    I need a little help reading in the amount of files stored on the camara hard disk dir into an int varaible......any thoughts?
    Last edited by stephenturns; 03-31-2005 at 03:10 AM.

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    FindFirstFile, FindNextFile (assuming you use windows)
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 03:30 PM
  2. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  3. Tutorial review
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 03-22-2004, 09:40 PM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM
  5. simulate Grep command in Unix using C
    By laxmi in forum C Programming
    Replies: 6
    Last Post: 05-10-2002, 04:10 PM