ifstream capabilties

This is a discussion on ifstream capabilties within the C++ Programming forums, part of the General Programming Boards category; using the ifstrream header i know i can read/write from files, but what about creating directories and renaming them (and ...

  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: Klinerr1@nc.rr.com || AIM: MisterSako || MSN: sakotheinsane@hotmail.com

    -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, 04:34 PM
  2. Core Dump when closing the ifstream object- why?
    By Krsh in forum C++ Programming
    Replies: 11
    Last Post: 11-20-2008, 05: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, 07:34 AM
  5. Ifstream Problems
    By IlUomo in forum Windows Programming
    Replies: 1
    Last Post: 04-24-2002, 12:51 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21