<?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>LPC Microcontrollersのトピックproblem with file creation</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/problem-with-file-creation/m-p/522567#M5203</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by borla.ramesh@gmail.com on Fri Feb 14 22:47:16 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;hi iam doing image processing with NXP LPC1768. for this iam reading a .bmp image and storing pixels in a file. but unfortunately the file is not creating when iam executing the code..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;code is:::::::::&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FILE *fp,*fp1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;int main()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;unsigned int ch;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fp1=fopen("lena3.txt","w");&amp;nbsp;&amp;nbsp; //output file&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fp=fopen("lena.bmp","r");&amp;nbsp; /// source file&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;while((ch=fgetc(fp))!=EOF)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fprintf(fp1,"%.2x,",ch);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fclose(fp1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fclose(fp);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//printf("%x",ch);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;return 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;while compiling the code it's showing :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;no errors no warnings&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but file is not creating in the project execution folder&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;please help me on this&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanq in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:56:09 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:56:09Z</dc:date>
    <item>
      <title>problem with file creation</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/problem-with-file-creation/m-p/522567#M5203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by borla.ramesh@gmail.com on Fri Feb 14 22:47:16 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;hi iam doing image processing with NXP LPC1768. for this iam reading a .bmp image and storing pixels in a file. but unfortunately the file is not creating when iam executing the code..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;code is:::::::::&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FILE *fp,*fp1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;int main()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;unsigned int ch;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fp1=fopen("lena3.txt","w");&amp;nbsp;&amp;nbsp; //output file&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fp=fopen("lena.bmp","r");&amp;nbsp; /// source file&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;while((ch=fgetc(fp))!=EOF)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fprintf(fp1,"%.2x,",ch);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fclose(fp1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fclose(fp);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//printf("%x",ch);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;return 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;while compiling the code it's showing :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;no errors no warnings&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but file is not creating in the project execution folder&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;please help me on this&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanq in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:56:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/problem-with-file-creation/m-p/522567#M5203</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:56:09Z</dc:date>
    </item>
  </channel>
</rss>

