<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: append to text file in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/append-to-text-file/m-p/815538#M1733</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not familiar with QML, but saw you hadn't received a response, yet. I perused the API reference - &lt;A href="https://developers.arcgis.com/qt/extras/api-reference/class_file_folder.html" style="line-height: 1.5;" title="https://developers.arcgis.com/qt/extras/api-reference/class_file_folder.html"&gt;ArcGIS Runtime QML Extras: FileFolder Class Reference&lt;/A&gt;&lt;SPAN style="line-height: 1.5;"&gt; - but couldn't see anything that natively supported appending to the file. This is a really basic feature - I'm surprised it's not something made available to you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;As an alternative, how about reading the existing text file using the &lt;A class="class_file_folder.html:aade80fdfb2fa1aa40730809fa431b825" style="color: #405c94; padding: 2px; font-family: 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; font-size: 12px; background-color: #f9fafc;"&gt;readTextFile&lt;/A&gt;​ method, appending it yourself, then calling the &lt;A class="class_file_folder.html:add7007d0539ae776430cb0702ca31901" style="color: #405c94; padding: 2px; font-family: 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; font-size: 12px; background-color: #f9fafc;"&gt;writeTextFile &lt;/A&gt;method with the full string object?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 Aug 2015 22:29:37 GMT</pubDate>
    <dc:creator>ChrisSmith7</dc:creator>
    <dc:date>2015-08-15T22:29:37Z</dc:date>
    <item>
      <title>append to text file</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/append-to-text-file/m-p/815537#M1732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Might be a simple question.... in the QML extras there is the FileFolder object, which has methods to write to file or text files. But they seem to just overwrite any existing file - is there a way to append instead?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FileFolder{&lt;/P&gt;&lt;P&gt;id: myfileFolder&lt;/P&gt;&lt;P&gt;path: "c:/myfolder"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myfileFolder.writeTextFile("myFile.txt", "my message to add")&lt;/P&gt;&lt;P&gt;myfileFolder.writeFile("myFile.txt", "my message to add")&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 02:22:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/append-to-text-file/m-p/815537#M1732</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-08-14T02:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: append to text file</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/append-to-text-file/m-p/815538#M1733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not familiar with QML, but saw you hadn't received a response, yet. I perused the API reference - &lt;A href="https://developers.arcgis.com/qt/extras/api-reference/class_file_folder.html" style="line-height: 1.5;" title="https://developers.arcgis.com/qt/extras/api-reference/class_file_folder.html"&gt;ArcGIS Runtime QML Extras: FileFolder Class Reference&lt;/A&gt;&lt;SPAN style="line-height: 1.5;"&gt; - but couldn't see anything that natively supported appending to the file. This is a really basic feature - I'm surprised it's not something made available to you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;As an alternative, how about reading the existing text file using the &lt;A class="class_file_folder.html:aade80fdfb2fa1aa40730809fa431b825" style="color: #405c94; padding: 2px; font-family: 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; font-size: 12px; background-color: #f9fafc;"&gt;readTextFile&lt;/A&gt;​ method, appending it yourself, then calling the &lt;A class="class_file_folder.html:add7007d0539ae776430cb0702ca31901" style="color: #405c94; padding: 2px; font-family: 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; font-size: 12px; background-color: #f9fafc;"&gt;writeTextFile &lt;/A&gt;method with the full string object?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Aug 2015 22:29:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/append-to-text-file/m-p/815538#M1733</guid>
      <dc:creator>ChrisSmith7</dc:creator>
      <dc:date>2015-08-15T22:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: append to text file</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/append-to-text-file/m-p/815539#M1734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris - yes, reading, adding to and then re-writing the whole file seems to be the solution in the absence of an append method. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;-Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Aug 2015 20:19:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/append-to-text-file/m-p/815539#M1734</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-08-16T20:19:13Z</dc:date>
    </item>
  </channel>
</rss>

