Thread: Checking a path's credentials

  1. #1
    Registered /usr
    Join Date
    Aug 2001
    Newport, South Wales, UK

    Checking a path's credentials


    What's the best way to verify the existance of a file given a path, short of opening it? Would GetFileSize(...) suffice?
    Last edited by SMurf; 08-28-2003 at 04:21 PM.

  2. #2
    Registered User sean345's Avatar
    Join Date
    Mar 2002
    GetFileSize requires a handle of an opened file. So you will have to open it anyway. You might look into something like FindFile I can check on the exact name when I get home.

    - Sean
    If cities were built like software is built, the first woodpecker to come along would level civilization.
    Black Frog Studios

  3. #3
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    FindFirstFile may be the right function.
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Array bounds checking
    By rohan_ak1 in forum C Programming
    Replies: 2
    Last Post: 08-26-2008, 10:16 PM
  2. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 09:38 AM
  3. Interpreter.c
    By moussa in forum C Programming
    Replies: 4
    Last Post: 05-28-2008, 05:59 PM
  4. Forced moves trouble!!
    By Zishaan in forum Game Programming
    Replies: 0
    Last Post: 03-27-2007, 06:57 PM
  5. Problems about gcc installation
    By kevin_cat in forum Linux Programming
    Replies: 4
    Last Post: 08-09-2005, 09:05 AM