NAME=SaveText
AUTHOR=
ITEM=sub SaveText fileName$, handle$
DESCRIPTION=Sub saves the contents of a texteditor / text window (handle$) to the
specified file (fileName$).
OUTSIDE CODE=
sub SaveText fileName$, handle$
'arguments:
'fileName$ - file to save to
'handle$ - handle of a text window or texteditor
'mode$ - not case-sensitive, either "output" or "append"
open fileName$ for output as #ffFileHandle
#handle$, "!contents? temp$"
print #ffFileHandle, temp$
close #ffFileHandle
end sub