WolframLang: Write File

By Xah Lee. Date: . Last updated: .
WriteString[ fileNameOrPath, string]

write String to a file.

  • If the file does not exist, it is created.
  • If the file already exists, it is overwritten.
  • When done writing, call Close to close the file.
WriteString[ "xxtest.txt", "some thing"]
Close[ "xxtest.txt" ]

WolframLang: Shell Tasks