plz help me in read files

This is a discussion on plz help me in read files within the C++ Programming forums, part of the General Programming Boards category; i want to write a C++ file that read the many txt files in a same directory. for example: i ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,671
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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, 11:14 AM
  2. How to read files?
    By Raigne in forum C++ Programming
    Replies: 17
    Last Post: 11-23-2005, 04:03 PM
  3. Read Only files
    By DominicTrix in forum C++ Programming
    Replies: 4
    Last Post: 12-11-2004, 01: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, 09:35 PM

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