An access violation exception doesn't indicate a problem with the file, but with the in-memory representation of the ifstream object or the string. Start looking for memory corruption.
Be sure you're referencing the correct GLSDK libraries for your build type. e.g. debug builds should reference debug libraries and release builds should reference release libraries.