# Save results to restart a piece of code

**URL:** https://community.freefem.org/t/save-results-to-restart-a-piece-of-code/1292
**Category:** General Discussion
**Created:** [October 29, 2021, 7:38pm UTC](https://community.freefem.org/t/save-results-to-restart-a-piece-of-code/1292 "2021-10-29T19:38:07Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![yongxing](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/yongxing/32/3632_2.png) [@yongxing](https://community.freefem.org/u/yongxing)
#### Post date: [October 29, 2021, 7:38pm UTC](https://community.freefem.org/t/save-results-to-restart-a-piece-of-code/1292/1 "2021-10-29T19:38:07Z")

</div>

What is the right command to **write and read a fem variable**? It seems there are many about write and read meshes, but I did not find the command to save and read a fem variable u;

```auto
fespace Vh(Th, P1);
Vh u;

```

---

<div class="post-metadata">

### Author: ![julienG](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/julieng/32/222_2.png) [@julienG](https://community.freefem.org/u/julienG)
#### Post date: [October 30, 2021, 1:10am UTC](https://community.freefem.org/t/save-results-to-restart-a-piece-of-code/1292/2 "2021-10-30T01:10:22Z")

</div>

> ofstrem toto (“toto.fem”):;  
> toto \<\< u;
