First off my programming experience is very limited and I haven't used C/C++ in the past 4/5 years so I'm fairly c**p at it.

Basically I'm trying to write a function that opens a .wav file and store the binary version of this file in a variable named 'input'. 'input' is a [num]x[16] integer array. 'num' is the no. of bits in the array divided by 16 (rounded up). The following is my code:

Code:
using namespace std;
...