I want to create an application that will read a file from sectors. I found this solution in C++ http://catalog.codeproject.com/Articles/32169/FDump-Dumping-File-Sectors-Directly-from-Disk-usin but no solutions in C#. Can anyone direct me or help me create this kind of application thanks for responding.
Share
The
DeviceStreamclass is not made for reading files (such as@"\\.\PhysicalDrive1\WINDOWS\EXPLORER.EXE") in any sort of “raw manner”.It is meant to access a raw/physical device – such as a hard disk or cdrom device – and read/write disk blocks below the level of the file system.
If you use it for writing to a disk without knowing exactly what you’re doing, you’ll show the
C/C++guys a whole new level of undefined behavior 🙂 It will most likely eat your file system for lunch.