Thread: plz help me in read files

  1. #1
    Registered User
    Join Date
    Mar 2011
    Posts
    3

    plz help me in read files

    i want to write a C++ file that read the many txt files in a same directory.
    for example: i want to read all txt files in the ../dat

    **what is the code is?


    thanks all~~
    Last edited by ck11; 04-14-2011 at 10:42 AM.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    See the FAQ for directory traversal code.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Drag and Drop files/Read and write files
    By ScoutDavid in forum C Programming
    Replies: 2
    Last Post: 01-13-2011, 12:14 PM
  2. How to read files?
    By Raigne in forum C++ Programming
    Replies: 17
    Last Post: 11-23-2005, 05:03 PM
  3. Read Only files
    By DominicTrix in forum C++ Programming
    Replies: 4
    Last Post: 12-11-2004, 02:55 AM
  4. read in from 2 files
    By stseitli in forum C Programming
    Replies: 2
    Last Post: 06-27-2002, 09:28 PM
  5. How to read files
    By asdf in forum C++ Programming
    Replies: 8
    Last Post: 03-28-2002, 10:35 PM