Thread: Copying Files Program

  1. #1
    Registered User
    Join Date
    Oct 2012
    Posts
    1

    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
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    We have FAQ's on command line arguments, and traversing directories.
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. binary files: copying jpeg or video files
    By cfanatic in forum C Programming
    Replies: 5
    Last Post: 07-19-2012, 08:17 AM
  2. copying two files into one !
    By rajarshi in forum C Programming
    Replies: 10
    Last Post: 11-10-2011, 03:54 AM
  3. Copying Files
    By HLA91 in forum C++ Programming
    Replies: 8
    Last Post: 10-25-2007, 03:24 AM
  4. Moving files/deleting files/ copying, etc
    By Nakeerb in forum C++ Programming
    Replies: 1
    Last Post: 10-11-2002, 05:45 PM
  5. copying files
    By Unregistered in forum C++ Programming
    Replies: 3
    Last Post: 03-08-2002, 03:41 AM