please help
can someone please poast a small source code to read the data off the hard drive and then write a new file to the H/D
yes
no
maby
i dno
please help
can someone please poast a small source code to read the data off the hard drive and then write a new file to the H/D
I do not understand your poll, what is its relation with your question?
Look up the functions for opening, reading, writing and closing files: fopen(), fclose(), fread(), fwrite().
About your poll, if your question is, if an C++ compiler compiles both C and C++, the answer is, most C++ compiler compiles C code, but the C-only compilers like (Turbo-C) do not compile C++ codes.
About writing in the hd, shiro gave you an answer.
About File I/O, you can find a good tutorial here:
http://cplus.about.com/library/weekly/aa051802a.htm
The poll is pointless, so I closed it. If you think otherwise, PM me and maybe I'll reconsider.
>>About File I/O, you can find a good tutorial here
Not much point in passing someone to a C++ tutorial when they've posted their question on a C board, imho.
@Neuby_44
There are plenty examples of file IO, do a search and see what you can find. Post your code if and when you have troubles.
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]