Thread: CDROM Copier

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    2

    Red face CDROM Copier

    HI,


    I"m interested in making a small app that will allow a user to copy data from a CD to some directory of the user's choice. I also want to create a progressbar so that the user is indicated as to how much of the cd is copied so far....


    My question is....is there a special header file i need to extract the files from directories on the cdrom disk....or can i use "ifstream/ofstream" to take them?

    Any help plz..
    Thx

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Depending on your OS, you want to look at these functions to read files and directories

    win32
    FindFirstFile() and FindNext()

    *ix
    opendir() / readdir() / closedir()
    stat() - to determine whether you have a file or a dir

    Once you have a list of files and sizes, then you should be able to calculate a progress bar.

  3. #3
    Registered User
    Join Date
    Jan 2002
    Posts
    2
    Hey..thx for the replay...but what is *ix stand for?

  4. #4
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    >>Hey..thx for the replay...but what is *ix stand for?

    He means operating systems that are Unix Based (IE Linux)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Reading from CDROM
    By Eibro in forum Tech Board
    Replies: 4
    Last Post: 03-20-2003, 04:48 PM
  2. Basic linux question (cdrom)
    By GanglyLamb in forum Tech Board
    Replies: 8
    Last Post: 02-19-2003, 01:33 PM
  3. ?polling? the cdrom drive.
    By un_reg in forum Linux Programming
    Replies: 5
    Last Post: 11-08-2002, 11:03 AM
  4. ejecting cdrom
    By onurak in forum C++ Programming
    Replies: 3
    Last Post: 10-11-2002, 02:17 AM
  5. How to format my Pc?
    By CaseY in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 01-22-2002, 12:18 PM