UiPath Documentation
activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

工作流活动

上次更新日期 2026年4月16日

附加行

将指定字符串附加到文件,如果文件不存在,则创建该文件。

定义

命名空间: UiPath.Activities.System.API

程序集: UiPath.System.Activities.Api(在 UiPath.System.Activities.Api.dll 中)

重载

AppendLine(String, ILocalResource)将指定字符串附加到文件,如果文件不存在,则创建该文件。
AppendLine(String, ILocalResource, Boolean, String)将指定的字符串与其他配置一起附加到文件中,如果文件不存在,则创建该文件。

AppendLine(String, ILocalResource)

将指定字符串附加到文件,如果文件不存在,则创建该文件。

void AppendLine(
    string text,
    ILocalResource file
)
void AppendLine(
    string text,
    ILocalResource file
)

text String :要附加到文件的文本。

file ILocalResource :要向其附加行的文件。

AppendLine(String, ILocalResource, Boolean, String)

将指定的字符串与其他配置一起附加到文件中,如果文件不存在,则创建该文件。

void AppendLine(
    string text,
    ILocalResource file,
    bool useDefaultEncoding,
    string encoding
)
void AppendLine(
    string text,
    ILocalResource file,
    bool useDefaultEncoding,
    string encoding
)

text String :要附加到文件的文本。

file ILocalResource :要向其附加行的文件的路径。如果路径不完整,则系统会在项目文件夹中创建文件。

useDefaultEncoding Boolean :是否使用默认操作系统编码用于创建新文件或无法检测到编码时。如果未选择,则使用 UTF-8 编码。

encoding String :要使用的编码类型。您可以在此处找到每种字符编码的完整代码列表。如果未指定编码类型,活动将搜索文件的字节顺序标记以检测编码。如果检测不到任何字节顺序标记,并且未使用“使用默认编码” ,则默认使用 UTF-8。

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新