You can't just read file bit by bit. So, you should use something like this:
ifstream f(inFile, ios::binary | ios::in);
char c;
while (f.get(c))
{
for (int i = 7; i >= 0; i--) // or (int i = 0; i < 8; i++) if you want reverse bit order in bytes
cout << ((c >> i) & 1);
}