Then I also have two methods, next() and
getContext(const WordOccurrence word, size_t numCharsBefore, size_t numCharsAfter).
The problem is that in the getContext() method, the file I opened isn't recognised. So whenever I try a method such as inFile.get(), I get the "not a class, struct, or union" error.