openWrite

Help Contents Communication File opening openWrite
openReadBin openWriteBin

openWrite filename


command. Opens the named file for writing. If the file already existed, the old version is deleted and a new, empty file created.

Example:

openWrite "temp.txt
setWriter "temp.txt
pr [This is a test file!]
setWriter []
close "temp.txt

And the file "temp.txt" then contains the line:

	This is a test file!

See also:

Examples:

References:

openReadBin openWriteBin