<< Click to Display Table of Contents >> Navigation: 3. Script Language > TXT. Text-File Engine > Insert/Delete Text > Insert_Line_after_Line |
MiniRobotLanguage (MRL)
TXT.ilal
TXT.Insert_Line_after_Line
Insert a Line after the specified Line in the actual TXT.-Buffer.
Intention
This command is used to Insert Bytes or Text into the internal Text-Buffer at any Position.
$$OUT=?exeloc\Result.txt
$$TXT=<ABCDEFG>$crlf$<ABCDEFG>$crlf$<ABCDEFG>$crlf$
TXT.Load_Pure_Text|$$TXT
$$HEA=123
$$POS=2
TXT.Insert_Line_after_Line|$$HEA|$$POS
TXT.Save_File|$$OUT
ENR.
Result:
<ABCDEFG>
<ABCDEFG>
123
<ABCDEFG>
Syntax
TXT.ilal|P1|P2
TXT.Insert_Line_after_Line|P1|P2
Parameter Explanation
P1 - (Input,Text) Variable with Text that will be Inserted at Position P2.
P2 - (Input,Numeric) Variable with Line-Number, before which the Text will be inserted.
Example
'*****************************************************
' EXAMPLE 1: TXT.gal
'*****************************************************
$$OUT=?exeloc\Result.txt
$$TXT=<ABCDEFG>$crlf$<ABCDEFG>$crlf$<ABCDEFG>$crlf$
TXT.Load_Pure_Text|$$TXT
$$HEA=123
$$POS=2
TXT.Insert_Line_after_Line|$$HEA|$$POS
TXT.Save_File|$$OUT
ENR.
Remarks
-
Limitations:
-
See also:
• IEF. / NEF. - If - exist - File