[python-win32] creating disk image
Jane Chen
janechen_1979 at yahoo.com
Wed Aug 8 20:09:15 CEST 2012
Cool. Thank you Tim!
Jane Chen wrote:
> Thank you for your help, Roger and Tim!
>
> Problem solved. I realized that I can simplify my problem by
> using win32file.ReadFile()to create a bin file.
You don't even need to go that far. There's nothing you can do with
win32file.ReadFile that you cannot also do using perfectly normal Python
file I/O, and that has the advantage of being cross-platform:
binaryfile = open('myfile.bin','rb')
buffer = binaryfile.read(4096)
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20120808/ceb11be6/attachment.html>
More information about the python-win32
mailing list