General::strml
The first argument in Write is a symbol rather than a string or a stream:
Write[TEST, OutputForm["output to file"]]This shows valid arguments in Write:
Write["TEST", OutputForm["output to file"]]Close the output stream, and remove the file:
Close["TEST"];DeleteFile["TEST"]