title: is it to possible to get data from png with fopen?
body: <p>is it to possible to get data from grayscale png with fopen and then convert it to integer numbers corresponding to grayscale?</p>
  
  <pre><code>FILE *fr;
  int ch;
  fr = fopen( "file_name.png", "rb" );
  while ( (ch=fgetc(fr)) != EOF )
      printf( "%d", ch );
  fclose( fr );
  </code></pre>