<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to save variable values into a .txt file?]]></title><description><![CDATA[<p>I have the following patch. It must be able to store the slider values in a text file. Afterwards, I will read these values using the Lua language, with the code also sent below.<br />
However, when I change the slider, no value appears in the terminal that executes the Lua code. I know the Lua code is correct because I can read the file when I send it from another Lua file instead of Pure Data.</p>
<p>Pure Data patch:<br />
<img src="/uploads/files/1683827312310-print.png" alt="print.png" class="img-responsive img-markdown" /></p>
<p>Lua code:</p>
<p><img src="/uploads/files/1683827388785-lua.png" alt="lua.png" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14357/how-to-save-variable-values-into-a-txt-file</link><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Nov 2026 00:03:50 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/14357.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 11 May 2023 17:49:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to save variable values into a .txt file? on Thu, 11 May 2023 17:49:57 GMT]]></title><description><![CDATA[<p>I have the following patch. It must be able to store the slider values in a text file. Afterwards, I will read these values using the Lua language, with the code also sent below.<br />
However, when I change the slider, no value appears in the terminal that executes the Lua code. I know the Lua code is correct because I can read the file when I send it from another Lua file instead of Pure Data.</p>
<p>Pure Data patch:<br />
<img src="/uploads/files/1683827312310-print.png" alt="print.png" class="img-responsive img-markdown" /></p>
<p>Lua code:</p>
<p><img src="/uploads/files/1683827388785-lua.png" alt="lua.png" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14357/how-to-save-variable-values-into-a-txt-file</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14357/how-to-save-variable-values-into-a-txt-file</guid><dc:creator><![CDATA[blurryface]]></dc:creator><pubDate>Thu, 11 May 2023 17:49:57 GMT</pubDate></item><item><title><![CDATA[Reply to How to save variable values into a .txt file? on Thu, 11 May 2023 18:07:24 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/blurryface">@blurryface</a> Have a look at the help file for [textfile].<br />
You need to send the write message into the inlet of [textfile] ..... telling it to write the file.<br />
But first you have to add the data to write..... so...... if you want just one (the last) float written then.....<br />
<img src="/uploads/files/1683828262424-capture.jpg" alt="Capture.JPG" class="img-responsive img-markdown" /></p>
<p>If you want every float sent into [textfile] then the message will be [add $1( instead of [set $1(<br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14357/how-to-save-variable-values-into-a-txt-file/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14357/how-to-save-variable-values-into-a-txt-file/2</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Thu, 11 May 2023 18:07:24 GMT</pubDate></item></channel></rss>