Thanks to all those who responded to this query. It seems to me that Python always add intervening spaces between data elements when writing to a file. Even with tostring() of numpy, array elements get separated by space character. I like the output of sys.stdout.write(file) to be writen as is to a binary file, but how?
I'll try your suggestions. Good luck, especially to me! :) -- http://mail.python.org/mailman/listinfo/python-list