# Save Text File from HTML template

**URL:** <https://casparcgforum.org/t/save-text-file-from-html-template/5074>\
**Category:** FAQ\
**Created:** [September 21, 2022, 11:00am UTC](https://casparcgforum.org/t/save-text-file-from-html-template/5074 "2022-09-21T11:00:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tsipas](https://casparcgforum.org/user_avatar/casparcgforum.org/tsipas/32/80_2.png) [@tsipas](https://casparcgforum.org/u/tsipas)\
**Post date:** [September 21, 2022, 11:00am UTC](https://casparcgforum.org/t/save-text-file-from-html-template/5074/1 "2022-09-21T11:00:46Z")

</div>

Hi  
Once again I try to switch from flash to HTML , but I didnt find a way to save some values from HTML to a text file and then read it from my client.  
To be more specific I have various potitions from an svg element and some time stamps that I want to save to a text file so I can read from my client.  
I already try some examples from codepen without luck  
If someone do this scenario it will be very helpfull  
thanks a lot

---

<div class="post-metadata">

**Author:** ![didikunz](https://casparcgforum.org/user_avatar/casparcgforum.org/didikunz/32/7_2.png) [@didikunz](https://casparcgforum.org/u/didikunz)\
**Post date:** [September 21, 2022, 6:12pm UTC](https://casparcgforum.org/t/save-text-file-from-html-template/5074/2 "2022-09-21T18:12:46Z")

</div>

I would try sending them via TCP/IP to the client. Another idea would be to write it to the log and redirect the standard out of Caspar to your client app. That makes it possible to parse the data out of the log stream.

---

<div class="post-metadata">

**Author:** ![Julusian](https://casparcgforum.org/user_avatar/casparcgforum.org/julusian/32/12_2.png) [@Julusian](https://casparcgforum.org/u/Julusian)\
**Post date:** [September 21, 2022, 7:54pm UTC](https://casparcgforum.org/t/save-text-file-from-html-template/5074/3 "2022-09-21T19:54:41Z")

</div>

I dont expect it possible to write files to disk from html like you used to be able to in flash.  
the html producer is pretty much a full web browser (it is in fact chromium with some small adjustments), so conforms to their security policies

---

<div class="post-metadata">

**Author:** ![zcybercomputing](https://casparcgforum.org/letter_avatar_proxy/v4/letter/z/e9bcb4/32.png) [@zcybercomputing](https://casparcgforum.org/u/zcybercomputing)\
**Post date:** [September 29, 2022, 1:09am UTC](https://casparcgforum.org/t/save-text-file-from-html-template/5074/4 "2022-09-29T01:09:28Z")

</div>

Wouldn’t it be possible to write an HTML template that had a server side component to it? Writing data on the server side of a web app is possible if by no other means than sending some commands to a different web server that would log the data. This would be more JavaScript or typescript than html.

---

<div class="post-metadata">

**Author:** ![didikunz](https://casparcgforum.org/user_avatar/casparcgforum.org/didikunz/32/7_2.png) [@didikunz](https://casparcgforum.org/u/didikunz)\
**Post date:** [September 29, 2022, 9:36am UTC](https://casparcgforum.org/t/save-text-file-from-html-template/5074/5 "2022-09-29T09:36:40Z")

</div>

> [@zcybercomputing](#):
>
> Writing data on the server side of a web app is possible if by no other means than sending some commands to a different web server that would log the data. This would be more JavaScript or typescript than html.

AFAIK the web server needs to run on the same machine that the CasparCG server is running on. So you need a little web server, that receives your data an writes the files out, or relay them to your client.
