插入行Insert Line

重要

此版本的 Orchestrator 已達終止支援,建議您 升級至 Orchestrator 2019This version of Orchestrator has reached the end of support, we recommend you to upgrade to Orchestrator 2019.

插入行活動會以您指定的行號,將行插入文字檔。The Insert Line activity inserts lines into a text file on a line number that you specify.

此活動取代了 Opalis 6.3 中 [管理文字檔的舊版] 活動中的功能。This activity replaces functionality in the Manage Text File legacy activity from Opalis 6.3.

設定插入行活動Configuring the Insert Line Activity

設定插入行檔案活動之前,您必須決定下列各項:Before you configure the Insert Line File activity, you need to determine the following:

  • 您要插入文字的檔案名。The name of the file you want to insert text into.

  • 您要插入文字之檔案的檔案編碼類型。The file encoding type of the file you want to insert text into.

  • 要插入文字的行號位置。The line number location where you want to insert the text.

您可以使用下列資訊來設定插入行活動。Use the following information to configure the Insert Line activity.

[詳細資料] 索引標籤Details Tab

設定Settings 組態指示Configuration Instructions
檔案File 輸入您想要插入文字之檔案的路徑和名稱,或按一下省略號按鈕 ** ( ... ) ** 並流覽至該檔案。Type the path and name of the file that you want to insert the text into, or click the ellipsis button (...) and browse for it.
檔案編碼File encoding 按一下省略號按鈕 ** ( ... ) ** ,然後從 [檔案 編碼 ] 下拉式清單中選取檔案的編碼格式。Click the ellipsis button (...) and select the format that the file is encoded in from the File encoding drop-down list. 確認您選取的是正確的編碼格式。Verify that you select the correct encoding format. 如果檔案使用不同的編碼格式,活動就會失敗。If the file uses a different encoding format, the activity fails.
TextText 輸入您想要插入檔案中的文字。Type the text that you want to insert into the file.
行號Line number 輸入將插入文字的行號。Type the line number where the text will be inserted.

已發佈資料Published Data

下表列出已發佈的資料項目。The following table lists the published data items.

ItemItem 描述Description
檔案名稱File name 要插入文字的檔案名。The name of the file that the text was inserted into.
檔案編碼File encoding 您在 [檔案編碼] 欄位中選取的檔編碼格式。The file encoding format that you selected in the File encoding field.
行文字Line text 已插入之行的文字。The text of the line that was inserted.
行號Line number 插入的行號,如果只插入一行。The line number that was inserted, if only one line was inserted.