When one open()s a file (that doesn't exist) for writing , how does one control that file's permissions (it's "mode" in Unix terms). -- Grant Edwards grante Yow! We just joined the at civil hair patrol! visi.com