Thread: File Existence Check :(

  1. #1
    Registered User Moni's Avatar
    Join Date
    Oct 2002
    Location
    Dhaka, Bangladesh.
    Posts
    104

    Unhappy File Existence Check :(

    Hello,

    For a portion of my project, I need to check whether there are files (of specific extension) exist in a folder.

    Let me explain it by example:

    There is a folder name: Prog
    I have to check every 10 seconds, is there any p01.cpp file or not?
    There may be multiple files..........

    p02.cpp
    p03.cpp
    p04.cpp

    And I have to get the name of all of the files that comes in that folder in every 10 seconds.

    And after that I have compile each of them and save the result like

    p02.txt
    p03.txt
    p04.txt

    etc.

    Then I'll remove the file from that folder so that it can't be in the list of compilations while those are already done

    It will be better if the code can be written in C++ the compiler I am using is Borland C++ 5.02 and the bcc for file compiling.

    I'll redirect the compilation result in that p02.txt...............then guys
    Last edited by Moni; 09-07-2003 at 09:12 AM.
    We all are the components of a huge program...... the programmer is always debugging us with His debugger.

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Try adapting one of these examples to read a directory.

    Also, here's some sleep info.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Newbie homework help
    By fossage in forum C Programming
    Replies: 3
    Last Post: 04-30-2009, 04:27 PM
  2. Can we have vector of vector?
    By ketu1 in forum C++ Programming
    Replies: 24
    Last Post: 01-03-2008, 05:02 AM
  3. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 02:53 AM
  4. Post...
    By maxorator in forum C++ Programming
    Replies: 12
    Last Post: 10-11-2005, 08:39 AM
  5. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM