Hi gurus,
I'm willing to create my own file system, which I will use for my external hard disk. Can anyone tell me how to read binary data from the hard disk and write to it. Thanks 4 help.:)
Printable View
Hi gurus,
I'm willing to create my own file system, which I will use for my external hard disk. Can anyone tell me how to read binary data from the hard disk and write to it. Thanks 4 help.:)
Are you joking?
Thanks for nothing, souldog.
[Problem Resolved]
I searched MSDN and used the WIN32 API CreateFile() to open the physical drive and the WIN32 API ReadFile() to store the data into a buffer.
I didn't want windows to use it, I just wanted my own explorer to use it.
you might want to consider using the C++ io streams for writing and reading binary files. They are easier to use than directly using the WIN32 API.
http://www.cplusplus.com/reference/iostream/
you would be using fstream with the flag std::ios::binary
I know how to use fstreams for handling files, but my problem is that I want to access a physical drive. Is there a way fstreams can access physical drives?