Why isn't the std::ifstream approach working? Post your code and an explanation of the problem.