always open with rb/wb when it is a binary file ... unix and windows will work alike...