Thread: ifstream capabilties

  1. #1
    Sir Mister Insane Sako Klinerr1's Avatar
    Join Date
    May 2002
    Posts
    608

    ifstream capabilties

    using the ifstrream header i know i can read/write from files, but what about creating directories and renaming them (and renaming files)

    if this is possible how would i go about doing this? (ive tried several theroys on this)
    Email: [email protected] || AIM: MisterSako || MSN: [email protected]

    -the shroom has spoken

  2. #2
    I lurk
    Join Date
    Aug 2002
    Posts
    1,361
    Nope, can't be done with ifstream. Although some instances of ifstream/ofstream will create a file if you try to open one which doesn't exist. If your compiler has <direct.h> you can use the functions in that... if not, then the Win32 API

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple ifstream Question
    By Paul22000 in forum C++ Programming
    Replies: 8
    Last Post: 12-05-2008, 05:34 PM
  2. Core Dump when closing the ifstream object- why?
    By Krsh in forum C++ Programming
    Replies: 11
    Last Post: 11-20-2008, 06:03 AM
  3. ifstream
    By Wraithan in forum Tech Board
    Replies: 3
    Last Post: 09-24-2006, 01:26 AM
  4. ofstream and ifstream for searching and writing
    By johnnyd in forum C++ Programming
    Replies: 6
    Last Post: 03-17-2003, 08:34 AM
  5. Ifstream Problems
    By IlUomo in forum Windows Programming
    Replies: 1
    Last Post: 04-24-2002, 12:51 PM