> fh = open(file, "r+") ## Do you need "b" (binary) for a text file? Of course not, but keeping that binary flag allows you to get all the information from a file when you are on windows. Depending on the contents, this is not always the case. Inserting the binary flag in *nix doesn't hurt anything. - Josiah