# Store Files Persistent; Cannot write to hardlinked folder?

**URL:** <https://forum.legato.io/t/store-files-persistent-cannot-write-to-hardlinked-folder/5265>\
**Category:** Legato Application Framework\
**Created:** [June 19, 2020, 1:04pm UTC](https://forum.legato.io/t/store-files-persistent-cannot-write-to-hardlinked-folder/5265 "2020-06-19T13:04:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [June 19, 2020, 2:20pm UTC](https://forum.legato.io/t/store-files-persistent-cannot-write-to-hardlinked-folder/5265/2 "2020-06-19T14:20:05Z")

</div>

Here says you can use unsandboxed application to create file

> [@File IO operations](https://forum.legato.io/t/file-io-operations/2421):
>
> What is the correct way to create a file from within a Legato application ? We need to create and save a configuration file during the application initialization, however, any and all attempts to create, open, read, write, and even close the file fail. The result is always a null file pointer or a return value of LE\_FAULT. I have tried : a) FILE \*fp = fopen( filename, “rw”) b) int fd = open(filename, O\_RDWR); c) int fd = le\_flock\_open(filename, LE\_FLOCK\_READ); d) int fd = le\_atomFile\_Open…

---

_[View the full topic](https://forum.legato.io/t/store-files-persistent-cannot-write-to-hardlinked-folder/5265)._
