finding names of files in a directory(dos)

This is a discussion on finding names of files in a directory(dos) within the C++ Programming forums, part of the General Programming Boards category; How can I do something like this(working in c++ under dos) Code: for(all files in a given directory) { //Some ...

  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    113

    finding names of files in a directory(dos)

    How can I do something like this(working in c++ under dos)
    Code:
    for(all files in a given directory)
    {
      //Some operation on file
    }
    That is I want to know names of all file in a particular directory.

  2. #2
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Opening files with UNICODE file names
    By decohk in forum Linux Programming
    Replies: 2
    Last Post: 11-09-2006, 04:25 AM
  2. Finding User names.....
    By twomers in forum C++ Programming
    Replies: 2
    Last Post: 12-05-2005, 03:46 AM
  3. Replies: 1
    Last Post: 07-24-2002, 06:33 AM
  4. reinserting htm files into chm help files
    By verb in forum Windows Programming
    Replies: 0
    Last Post: 02-15-2002, 08:35 AM
  5. Names of Text Files
    By tim545666 in forum C++ Programming
    Replies: 5
    Last Post: 02-10-2002, 10:59 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21