writing \feff at the begining of a file

Tim Golden mail at timgolden.me.uk
Fri Aug 13 05:58:59 EDT 2010


On 13/08/2010 10:45, Jean-Michel Pichavant wrote:
> My problem is however simplier : how do I add such character at the
> begining of the file ?
> I tried
>
> f = open('paf', w)

f = open ("pag", "wb")
f.write ("\xfe\xff")

TJG



More information about the Python-list mailing list