std::ofstream(for PC) and Web Storage(for Web/Emscripten) uniode