godoc -src io/ioutil WriteFile
Russ
-rob
func Open(path string, mode int, perm uint32) (fd int, errno int) {
	if len(path) == 0 {
		return -1, ERROR_FILE_NOT_FOUND
	}
	var access uint32
	switch mode & (O_RDONLY | O_WRONLY | O_RDWR) {
	case O_RDONLY:
		access = GENERIC_READ
	case O_WRONLY:
		access = GENERIC_WRITE
	case O_RDWR:
		access = GENERIC_READ | GENERIC_WRITE
	}
// should probably add the following
	if mode&O_APPEND {
		access |= FILE_APPEND_DATA
		// and probably should also do:
		// access &= ^GENERIC_WRITE
	}
-Skip