# Export a String into a .txt File

**URL:** <https://forum.inductiveautomation.com/t/export-a-string-into-a-txt-file/5438>\
**Category:** Ignition\
**Created:** [November 17, 2012, 3:01pm UTC](https://forum.inductiveautomation.com/t/export-a-string-into-a-txt-file/5438 "2012-11-17T15:01:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![caritoel27](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/caritoel27/32/3430_2.png) [@caritoel27](https://forum.inductiveautomation.com/u/caritoel27)\
**Post date:** [November 17, 2012, 3:01pm UTC](https://forum.inductiveautomation.com/t/export-a-string-into-a-txt-file/5438/1 "2012-11-17T15:01:14Z")

</div>

Hi, I write to you because a need to export a string or a sentence, from a text field in a .txt file, i didn’t find a function to make this posible ☹

Can you help me with this? Please. I’ll appreciate your help.

Carito

---

<div class="post-metadata">

**Author:** ![nathan](https://avatars.discourse-cdn.com/v4/letter/n/c5a1d2/32.png) [@nathan](https://forum.inductiveautomation.com/u/nathan)\
**Post date:** [November 18, 2012, 8:27am UTC](https://forum.inductiveautomation.com/t/export-a-string-into-a-txt-file/5438/2 "2012-11-18T08:27:47Z")

</div>

See system.file.writefile in the user manual. Example 2 should get you started. You would base this script on an event, such as clicking a button on a Window (on the button’s ActionPerformed event)

[inductiveautomation.com/support/ … tefile.htm](http://inductiveautomation.com/support/usermanuals/ignition/system_file_writefile.htm)
