hello there, im new in c++...i need to know how to access files in the hard disk...im having a priject of controling hdd using linux and c++...my task is to create a program in c++ using linux that get's a file from the hard disk, check's if the memory of the cd is full, then write the files in cd...help pls...

look up iostream

getting files from HD is pretty easy -- as Walt said. Writing to CD is much more problematic because you can't use standard stream io on it but go through the CD's device driver. I don't know how that's done because I always use a commercial cd writer program.

Grab the source code for one of the existing CD writer applications for Linux, and study it thoroughly.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.