Open the file, scan in character by character and read into an array, what's wrong with a fixed size array?