The docs say "write( str) - Write a string to the file." Only a string. Regardless of mode. Mode mostly affects interpretation of line ends. -- Bob Gailer Chapel Hill NC 919-636-4239