STL Problem & Question

Hi.

Firs about the problem. I am trying to get a code to read data in binary mode, which is will safe in a character array. Once done, I want the program to insert each character in the character array into an STL container: list. For some reason, I could use "mylist.push_back(array[i])" or "mylist.insert(array[i]). here is the code: