Re: [Dev-C++] How to read/write directly a track/sector in a hard disk or CD
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Alfred P. R. <al...@ya...> - 2005-08-29 19:06:37
|
IMHO, there are many reasons for doing such, including security, data recovery, etc. However, I've never seen this done in C/C++. As you have to access low level IO functions, this is preferentially done is assembly, as I don't believe C/C++ have this capability. At least, I've never found the need to research it. I would recommend Googling for low level disk IO. If you're really diligent, you can find out that there are undocumented features to disk controllers that significantly enhance data security. Per Westermark <pw...@ia...> wrote: Since reading/wringing directly to the drive requires access to the physical hardware, I have to ask exactly why you have this need. What are you trying to do? /Per W On Mon, 29 Aug 2005, rc...@bi... wrote: > > Dear sir, > > I see how to read/write to files using C. But I need to to define a track/sector that I can read and write to it under my control. Could > you help me pointing out documents/sites with this information or teatching me how to do this. > > Thanks for your help > > Roger <snip> Alfred P. Reaud |