Re: writing numbers in binary file

2010-05-31 Thread eskandari
On May 31, 12:30 pm, MRAB wrote: > eskandari wrote: > > Hi, > > I am a newbie in python. I have an data.pickle file which is > > serialized form of an "array of strings", I want to write their > > offsets in another binary file, so an C++ program can read and

writing numbers in binary file

2010-05-31 Thread eskandari
Hi, I am a newbie in python. I have an data.pickle file which is serialized form of an "array of strings", I want to write their offsets in another binary file, so an C++ program can read and analyse them. But when I try to write offset (number) in binary file, it raise exception below in line "of