title: How to compare an ASCII value
body: <p>I want to store the ASCII value of a letter into a variable, how can I do this?</p>
  
  <p>for example :</p>
  
  <pre><code>r ASCII variable = 82
  main()
  {
      character = "character read from a file";
      variable= "r ascii"; //(in this case 82), the problem is that the letter is always        variable.;
      printf( "the value of %c is %d, character, variable)
  }
  </code></pre>
  
  <p>How can I do this?</p>
  
  <p>Also on an extra note, how could I read a <code>.txt</code> file character by character? so It could be saved on the character variable.</p>