AW: Write to a binary file

2007-04-04 Thread Thomi Aurel RUAG A
Hy Mike Thanks for your links, unfortunately they weren't very usefull for my specific problem. Hy Grant Edwards Thanks for your hints. A simplified test programm to compare the function for opening a file i used ("file()") and your suggested "os.open()" showed different behaviour. My simple test

Write to a binary file

2007-04-04 Thread Thomi Aurel RUAG A
Hy I'm using Python 2.4.2 on an ARM (PXA-270) platform (linux-2.6.17). My Goal is to write a list of bytes down to a file (opened in binary mode) in one cycle. The crux is that a '0x0a' (line feed) will break the cycle of one writing into several pieces. Writing to a "simple" file, this wouldn't ca