# How to save a file with the extension “.log”?

**URL:** <https://forum.inductiveautomation.com/t/how-to-save-a-file-with-the-extension-log/84746>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [January 25, 2024, 1:00am UTC](https://forum.inductiveautomation.com/t/how-to-save-a-file-with-the-extension-log/84746 "2024-01-25T01:00:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JinGeun\_Kim](https://avatars.discourse-cdn.com/v4/letter/j/439d5e/32.png) [@JinGeun\_Kim](https://forum.inductiveautomation.com/u/JinGeun_Kim)\
**Post date:** [January 25, 2024, 1:00am UTC](https://forum.inductiveautomation.com/t/how-to-save-a-file-with-the-extension-log/84746/1 "2024-01-25T01:00:53Z")

</div>

How do I create a file called "dlog.log" with the text "aaa" in the "TestFolder" folder on the gateway PC?

---

<div class="post-metadata">

**Author:** ![Matrix\_Engineering](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matrix_engineering/32/19781_2.png) [@Matrix\_Engineering](https://forum.inductiveautomation.com/u/Matrix_Engineering)\
**Post date:** [January 25, 2024, 1:05am UTC](https://forum.inductiveautomation.com/t/how-to-save-a-file-with-the-extension-log/84746/2 "2024-01-25T01:05:04Z")

</div>

Modify the examples found at the bottom of this page:

[https://docs.inductiveautomation.com/display/DOC81/system.file.writeFile](https://docs.inductiveautomation.com/display/DOC81/system.file.writeFile)
