in reply to Reading a physical disk in windows as a File
I doubt you will find a module to allow you access to the correct api's to read disks in their raw format. I haven't looked, so I may be wrong on that.
As you already have a utility to do it, I would suggest the easiest way is to persue your notion of forking dd and reading it that way. Instead of trying to read the whole thing into memory as a line, use the method of setting $/=\nn, to control the amount you read from the pipe to dd.
See perlman:perlvar, search for $INPUT_RECORD_SEPARATOR, and read the second piece of sample code and its surrounding paragraph for a full explaination.
Out of interest, is 'dd' the MKSToolkit version?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Reading a physical disk in windows as a File
by John M. Dlugosz (Monsignor) on Sep 03, 2002 at 22:00 UTC | |
by BrowserUk (Patriarch) on Sep 03, 2002 at 22:21 UTC |