{"id":"runtime--File.WriteText","name":"File.WriteText","owner":"yeho","package":"runtime.File","kind":"builtin","signature":"File.WriteText(text path, text contents) -> void","description":"Write text to the supplied file path through the host file runtime.","context":"Built into Yeho; no package import is needed. Native services require an admitted host and the correct resource lifecycle.","parameters":[{"name":"path","type":"text","description":"Supply path as text.","rule":"Text"},{"name":"contents","type":"text","description":"Supply contents as text.","rule":"Text"}],"returns":"void","members":[],"tags":["builtin","cpu","file","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"src/compiler/common/intrinsic_registry.cpp","line":810,"sha256":"14d29529d2d3c0e2b587f83c7f125b99ada142ed7ae28612701ea6cb9174ac65"},"status":"registered-intrinsic","notes":["The example checks the call shape. Opening windows, recording audio, changing files, network operations, and process operations have real effects when run. Follow the corresponding package lifecycle before using live resources."],"examples":[{"id":"usage","title":"Call File.WriteText","description":"A complete typed caller with illustrative arguments. Native operations need the corresponding host and resources.","code":"text path = \"path\"\ntext contents = \"contents\"\nFile.WriteText(path, contents)\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.runtime__file_writetext\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n","tags":["cpu","builtin"],"run":"cpu-oracle","verification":"type checked","sha256":"359d4fd558120fa8da37f4c8b9b94270963e40ef411cfd02ff66285658eed389","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=runtime--File.WriteText","json":"https://demonhunterlabs.com/reference/items/runtime--File.WriteText.json","markdown":"https://demonhunterlabs.com/reference/text/runtime--File.WriteText.md"}
