mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2024-11-23 22:59:45 +00:00
修改文件创建方式
Signed-off-by: cy7717 <chenyu301@huawei.com>
This commit is contained in:
parent
53cbd38491
commit
c96eb78bac
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user