Hi Michael,
It is not your question, but I'm not sure about the why you want to save your text file into an array. You should better read the input/output section of the tutorial
http://www.cplusplus.com/doc/tutorial/files/ if you want to deal with text files for examples.
Now, for your question. When you do
|
char encodedText[9988] = { "encoded.txt" };
|
the encodedText array will be: [e,n,c,o,d,e,d,.,t,x,t,\0]
because you are actually asking to save the name into this array.
What you want to do is: reading the file character by character, and storing the character in the array. But one more time, you should better spend some time on the input/output section of the tutorial, and then what you want to do will be piece of cake ;)