Thread: is the dir there ?

  1. #1
    Unregistered
    Guest

    is the dir there ?

    from my c++ console prog, i need to find out if a directory exists.
    in windows, all(even empty ones) have \folder\nul
    does unix have something similar ?

  2. #2
    rohit79
    Guest
    doing the easy way again

    you will have to mount your windows partition first into say something like /mnt/windows


    then system(find /mnt/windows -type d -name "yourdirectoryname" -print)

  3. #3
    Unregistered
    Guest
    --> "/directory/foobar", "w+"

    what's the "w+" ?

    basically i'm in my home dir.
    in my home dir there is a dir called saves,
    i need to see it if exists.

    (It's done for my windows section, but it needs to work on linux)

  4. #4
    Unregistered
    Guest
    you must be in Canada

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 12
    Last Post: 04-25-2007, 02:48 PM
  2. dir output problems
    By willc0de4food in forum C Programming
    Replies: 3
    Last Post: 04-18-2006, 05:47 AM
  3. execute files from dir
    By xxxrugby in forum C Programming
    Replies: 2
    Last Post: 04-08-2005, 01:33 PM
  4. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  5. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM