directory handling in c++

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nomad5000
    New Member
    • Sep 2006
    • 22

    directory handling in c++

    Helo everybody!

    I'm trying to use directory manipulation in c++ I'm using Borland c++ builder x compiler or a minimalist gnu c++ compiler and I can't find a way to be able to create and manipulate directories. I read a litlebit in the internet and found something about a library called dir.h but I can't find this library in my compiler.

    Any help will be gratly apreciated!!

    Greetings Michael
  • RedSon
    Recognized Expert Expert
    • Jan 2007
    • 4980

    #2
    What are you trying to do to your directories? In what way would you like to manipulate them?

    Comment

    • nomad5000
      New Member
      • Sep 2006
      • 22

      #3
      Originally posted by RedSon
      What are you trying to do to your directories? In what way would you like to manipulate them?
      I would like to create a directory an later on create several files inside that directory.
      example:

      --ExampleDir
      ----ExampleFile1
      ----ExampleFile2
      ----ExampleFile3
      ----ExampleFile4

      Comment

      • Banfa
        Recognized Expert Expert
        • Feb 2006
        • 9067

        #4
        And which OS are you on, file and directory structure are platform dependent and there is not a standard way to access them.

        Comment

        • nomad5000
          New Member
          • Sep 2006
          • 22

          #5
          I'm using plain old Windows XP

          Comment

          • nomad5000
            New Member
            • Sep 2006
            • 22

            #6
            Pleas respond it´s urgent!!

            Comment

            • Banfa
              Recognized Expert Expert
              • Feb 2006
              • 9067

              #7
              I suggest you look up CreateDirectory

              Comment

              • Peterwkc
                New Member
                • Apr 2007
                • 55

                #8
                In Linux operating system, there is many command to manipulate such as create directory, remove, cut and copy using shell script but i have no idea how can this be done in C or C++.

                Thanks.

                Any solution is greatly appreciated by me and others.

                Comment

                Working...