December 14, 2006 Reading and writing a binary file | ||||
---|---|---|---|---|
| ||||
Greetings. I am have a python script that I need to move to d. How do I read a binary file (say, c:\tmp\user.doc) and also how do I write a binary file (say, c:\tmp\new.doc)? Thanks, josé |
December 14, 2006 Re: Reading and writing a binary file | ||||
---|---|---|---|---|
| ||||
Posted in reply to jicman | jicman wrote: > Greetings. > > I am have a python script that I need to move to d. How do I read a > binary file (say, c:\tmp\user.doc) and also how do I write a binary > file (say, c:\tmp\new.doc)? > > Thanks, > > jos� I observed that std.stream.File and std.stream.BufferedFile *always* work in binary mode and you can't change that. In your case that's a good thing. http://d.puremagic.com/issues/show_bug.cgi?id=590 --bb |
Copyright © 1999-2021 by the D Language Foundation