Caesar Cipher Shift (using alphabet array)
I am currently writing a Caesar Cipher program in C# for my assignment and I am having a problem. I am approaching this task using an array where I store the whole alphabet and I declare a shift variable which is defined by character index in the array - the iteration of a for loop. The shift calculation is done in a foreach loop, that fetches a character from a string that is read from a text file. Foreach loop is contained within a for loop that iterates to output every possible shift. However, the problem is that when I try to access the character in an array by a value of my shift variable