From 0fe86bfdc5077a794519b1bdca83d8b439de1a87 Mon Sep 17 00:00:00 2001 From: WangLin305 Date: Fri, 4 Jul 2025 14:55:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=90=8C=E6=BA=90=E6=A0=87?= =?UTF-8?q?=E8=AE=B0=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/cpp/FileAccessMethods.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/entry/src/main/cpp/FileAccessMethods.cpp b/entry/src/main/cpp/FileAccessMethods.cpp index c65c783..77679b8 100644 --- a/entry/src/main/cpp/FileAccessMethods.cpp +++ b/entry/src/main/cpp/FileAccessMethods.cpp @@ -40,10 +40,10 @@ static napi_value TransferSandboxPath(napi_env env, napi_callback_info info) { // [End get_path] //Open the file through the specified path. snprintf(pathBuf, sizeof(pathBuf), "%s/TransferSandboxPath.txt", pathBuf); - // [Start fp] + // [Start fp] FILE *fp; fp = fopen(pathBuf, "w"); - // [End fp] + // [End fp] if (fp == nullptr) { OH_LOG_Print(LOG_APP, LOG_ERROR, DOMAIN, TAG, "Open file error!"); return nullptr; @@ -69,10 +69,10 @@ static napi_value SplicePath(napi_env env, napi_callback_info info) { // [End path_buf] //Convert the contents of the text to be written into C-side variables through the Node-API interface. char contentsBuf[256]; - // [Start value_utf8] + // [Start value_utf8] // [Start value_string] napi_get_value_string_utf8(env, argv[0], contentsBuf, sizeof(contentsBuf), &contentsSize); - // [End value_string] + // [End value_string] // [End value_utf8] // [Start fp1] //Open the file through the specified path. -- Gitee