Programming Windows D Examples are now Online!

Jimmy Cao jcao219 at gmail.com
Wed Jun 22 22:18:55 PDT 2011


On Wed, Jun 22, 2011 at 11:23 PM, Andrej Mitrovic <
andrej.mitrovich at gmail.com> wrote:

> What am I doing wrong here?
>
> f1 = open('Drum.d', 'r')
> lines = f1.readlines()
> f1.close()
>
> f2 = open('Drum.w', 'w')
> for line in lines:
>   #~ print(patt.sub(replacer, line))    # This replaces the parens
> correctly
>   f2.write(patt.sub(replacer, line))     # But the file ends up being
> the same..
> f2.close()
>


That looks 100% right.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-announce/attachments/20110623/ac5bb1fc/attachment.html>


More information about the Digitalmars-d-announce mailing list