1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Rep Power

    Copying Files Program

    Hey guys :)

    I am relatively new to C and I want to write a program that can copy files from one input directory to an output directory using one or more input directories and one output directory as command-line arguments representing directory names.

    I am sure that this would be relatively basic but I don't know how to access files which have path names and to copy them to another output file.. I am a slightly lost!

    If someone could give me some basic, easy to understand tips I'd be so thankful!
  2. #2
  3. Contributed User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jun 2005
    Rep Power

    Perhaps you could use your superior forum finding skills to actually finding an answer.

    something else to read
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper
  4. #3
  5. Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Aug 2011
    Rep Power
    Learn to use the various file copying programs on various operating systems. Don't write c code for this task. It's been done.
    [code]Code tags[/code] are essential for python code and Makefiles!

IMN logo majestic logo threadwatch logo seochat tools logo