
-----------------------------------
Geminias
Thu Nov 17, 2005 7:29 pm

can't make new directory.
-----------------------------------
for some reason i can't get it to make a new directory, or write a new file anywhere but the current one for that matter.  

anyone know how to fix this?  

here's the code i'm working with.


#include 
#include 

using namespace std;

int main()
{
  char str

-----------------------------------
wtd
Thu Nov 17, 2005 7:37 pm


-----------------------------------
First thing:

You're writing C++, not C.  Don't use char arrays as strings.

Secondly...why do you think your program should be able to automagically create a new directory when it tries to create a new file?

-----------------------------------
Geminias
Thu Nov 17, 2005 7:53 pm


-----------------------------------
I didnt write the code.  You already told me not to use character arrays.  

Secondly, in turing I just add path ("c:whater") and it will accomplish the feet.  It was only logical for me to attempt the same format in c++ while crossing my fingers and hoping it would work.

-----------------------------------
wtd
Thu Nov 17, 2005 7:56 pm


-----------------------------------
You will find that very few languages will let you create directories so easily.

-----------------------------------
wtd
Thu Nov 17, 2005 7:57 pm


-----------------------------------
Why?  Well... part of it is because C++ is designed for half a gajillion different OSes and hardware platforms.  Coming up with one library that deals with them all would be quite an undertaking.

You may wish to google for information about the boost libraries.

-----------------------------------
Geminias
Thu Nov 17, 2005 8:14 pm


-----------------------------------
appreciate the tip wtd.  I hope I can find it  :wink:

-----------------------------------
Geminias
Thu Nov 17, 2005 8:34 pm


-----------------------------------
hey wtd check this out.

Click here: Me

-----------------------------------
wtd
Thu Nov 17, 2005 8:35 pm


-----------------------------------
And why would I care about Microsoft's website?

-----------------------------------
Geminias
Thu Nov 17, 2005 8:36 pm


-----------------------------------
check now  :lol:

-----------------------------------
wtd
Thu Nov 17, 2005 8:43 pm


-----------------------------------
Congrats.  You have a fine grasp on 1995-era web design.

-----------------------------------
Geminias
Thu Nov 17, 2005 8:46 pm


-----------------------------------
i'm not finding anything relevant under boost library  :(

-----------------------------------
Geminias
Thu Nov 17, 2005 8:47 pm


-----------------------------------
thanks, i'm glad you like my skills

-----------------------------------
wtd
Thu Nov 17, 2005 8:51 pm


-----------------------------------
[url=http://www.google.ca/search?q=c%2B%2B+boost+library+directory&sourceid=mozilla-search&start=0&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:en-US]Google for "c++ boost library directory".

The first hit is [url=http://www.boost.org/libs/filesystem/doc/]this.

-----------------------------------
Geminias
Thu Nov 17, 2005 8:52 pm


-----------------------------------
okay i think i found it..   thanks anways
