修改文件创建方式

Signed-off-by: cy7717 <chenyu301@huawei.com>
This commit is contained in:
cy7717 2023-01-18 20:55:03 +08:00
parent 53cbd38491
commit c96eb78bac

View File

@ -156,7 +156,7 @@ bool ImeCfgManager::IsCachePathExit(std::string &path)
bool ImeCfgManager::ReadCacheFile(const std::string &path, json &jsonCfg)
{
std::fstream jsonFs(path, std::ios_base::out);
std::ifstream jsonFs(path);
if (!jsonFs.is_open()) {
IMSA_HILOGE("file read open failed");
return false;