# System.file.writeFile issue with Perspective

**URL:** <https://forum.inductiveautomation.com/t/system-file-writefile-issue-with-perspective/24229>\
**Category:** Ignition Early Access\
**Created:** [April 18, 2019, 1:05pm UTC](https://forum.inductiveautomation.com/t/system-file-writefile-issue-with-perspective/24229 "2019-04-18T13:05:22Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [April 18, 2019, 2:22pm UTC](https://forum.inductiveautomation.com/t/system-file-writefile-issue-with-perspective/24229/3 "2019-04-18T14:22:14Z")

</div>

To add onto @pturmel’s response, please look at the available scopes for the functions you’re attempting to use; `saveFile()` is only available in Vision Client scripting - not Perspective Sessions.

The `writeFile()` function IS available in Perspective, but ALL functions in Perspective run on the Gateway (so that’s where the file is written to), so you will never see a file on your local machine as a result of using `writeFile()`.

There’s no mechanism in Perspective as of today that allows for exporting or downloading files of any type - short of coupling with the WebDev Module.

---

_[View the full topic](https://forum.inductiveautomation.com/t/system-file-writefile-issue-with-perspective/24229)._
