I think i'm just confused. I need to read text from a file put it into an array, with 4 characters in each element.
does the inputFile.open when putting it into an array seperate each element automatically when it sees a space? when I print the array out it shows the whole file, so i can't tell if it's doing one character at a time, or all of it.
inputFile.open("sound.dat"); // Open the file.
while (count < ARRAY_SIZE && inputFile >> numbers[count])
decode(numbers, ARRAY_SIZE); //what this piece of code have to do here???
count++;
// Close the file.
inputFile.close(); //why do you close you file ? it's not finish yet!!
also you are missing some brackets {} around your while loop.