title: How can I replace letters with numbers in C?
body: <p>So I want to make kind of an encryption program for a school project,I want for example the letter 'a' to be replaced with:12345 'b' with 54321 in C,how can I accomplish this?I'm not the best,my code so far:</p>
  
  <pre><code>eFile = fopen("Message.txt", "ab+");
              while(!feof(eFile))
              {
                  fscanf(eFile,"%c",&amp;message);
              }
  </code></pre>
  
  <p>I want for example if I write the word apple into the text file,make the program scan it letter by letter and replace every letter with a 5 digit number(I have them predefined already) example: apple = 12342 69865 69865 31238 43297</p>