std::ios::seekdir::beg in ANDROID is std::ios::beg