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

    Join Date
    Oct 2012
    Posts
    1
    Rep Power
    0

    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
    Posts
    4,366
    Rep Power
    1870
    cross-posted

    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 Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,709
    Rep Power
    480
    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