dgd/
dgd/mud/doc/kernel/
dgd/mud/doc/kernel/hook/
dgd/mud/doc/kernel/lfun/
dgd/mud/include/
dgd/mud/include/kernel/
dgd/mud/kernel/lib/
dgd/mud/kernel/lib/api/
dgd/mud/kernel/obj/
dgd/mud/kernel/sys/
dgd/src/host/beos/
dgd/src/host/pc/res/
dgd/src/host/unix/
dgd/src/lpc/
dgd/src/parser/
NAME
	write_file - write to a file

SYNOPSIS
	int write_file(string file, string str, varargs int offset)


DESCRIPTION
	Write a string to a file.  If the optional third argument is
	specified and non-zero, write the string at the given offset in
	the file; otherwise, append to the file.  The offset may be
	negative to offset backwards from the end of the file.
	To write a string to the beginning of a file, let the offset be
	equal to minus the length of the file.
	The return value is 1 for success, 0 for failure.

SEE ALSO
	kfun/editor, kfun/read_file