Thread: Creating a new directory

  1. #1
    Registered User harryP's Avatar
    Join Date
    Sep 2002

    Creating a new directory

    Ok I want to copy a file to a folder that doesn't exist. Is there a way to have ofstream create the folder and then copy the file to it? Like they do for installing games. Thanks!

    Draco dormiens nunquam titallandus.
    Console Graphics Library:

  2. #2
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Seattle, WA
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 09:38 AM
  2. Couple errors please help :-D
    By JJJIrish05 in forum C Programming
    Replies: 9
    Last Post: 03-06-2008, 02:54 AM
  3. Replies: 9
    Last Post: 03-03-2006, 10:11 PM
  4. MFC: How do you check if a directory exists before creating?
    By BrianK in forum Windows Programming
    Replies: 5
    Last Post: 07-06-2004, 01:09 AM
  5. Creating a file in a certain directory
    By bc17 in forum C++ Programming
    Replies: 10
    Last Post: 11-24-2002, 12:20 PM