<?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 Appending text file in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Appending-text-file/m-p/543866#M8439</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Rithus on Sat Mar 15 04:53:28 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am new to LPCXpresso. I wonder if i can append a text file on the pc drive using the usual c code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is my text below however is doesn't seem to be able to append any text file and when i run the program, i notice that the program will be stuck in the fopen append function. However it is working perfectly fine when i use the read and write function. May i ask if there is any other way to append a .txt file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is my code: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FILE * pFile;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;pFile = fopen ("C:\\LPCDATA.txt","a");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fputs ("hello",pFile);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fclose (pFile);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance:)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 00:35:55 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T00:35:55Z</dc:date>
    <item>
      <title>Appending text file</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Appending-text-file/m-p/543866#M8439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Rithus on Sat Mar 15 04:53:28 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am new to LPCXpresso. I wonder if i can append a text file on the pc drive using the usual c code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is my text below however is doesn't seem to be able to append any text file and when i run the program, i notice that the program will be stuck in the fopen append function. However it is working perfectly fine when i use the read and write function. May i ask if there is any other way to append a .txt file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is my code: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FILE * pFile;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;pFile = fopen ("C:\\LPCDATA.txt","a");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fputs ("hello",pFile);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fclose (pFile);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance:)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:35:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Appending-text-file/m-p/543866#M8439</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:35:55Z</dc:date>
    </item>
  </channel>
</rss>

