title: How can I identify a single character at a time in a line of text
body: <p>So I've gotten all the code written but I can only figure out how to change the value of a predetermined character, in this case e, where I need the value to change with the current character as it loops through the text</p>
  
  <p>Thanks in advance</p>
  
  <pre><code>static void Encrypt()
          {
              int asciiVal;
              string CurrentLine;
              StreamReader CurrentReadFile = new StreamReader("EncMe.txt");
              StreamWriter CurrentWriteFile = new StreamWriter("temp.txt");
              while (!CurrentReadFile.EndOfStream)
              {
                  string EncLine = "";
                  CurrentLine = CurrentReadFile.ReadLine();
                  foreach (char e in CurrentLine)
                  {
                      char CurrentChar = 'e';
                      asciiVal = (int)CurrentChar;
                      asciiVal = asciiVal + 1;
                      CurrentChar = (char)asciiVal;
                      EncLine = EncLine + CurrentChar;
                  }
                  CurrentWriteFile.WriteLine(EncLine);
              }
              CurrentWriteFile.Close();
              CurrentReadFile.Close();
          }
  </code></pre>