String-Commands * TXT-Command

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > TXT. Text-File Engine > Get Lines and Text >

String-Commands * TXT-Command

TXT.Get_to_End

Previous Top Next


MiniRobotLanguage (MRL)

 

TXT.gte

TXT.Get_to_End
Get all Text that is after a specified Line, including the specified line.

 

 

 

Intention

 

This Command is used to get all Text that is after a specified Line, including the specified Line, from the Text that is in the Internal TXT-Buffer, into a Variable.

Variable P2 will contain the result Text include and after the Line Nr. P1.
 

' Get all Text before Line 10 into $$LEF

$$NUM=10

TXT.gte|$$NUM|$$LEF

LEN.$$LEF|$$LEN

'JIV.$$LEN!238|Lab_failed

 

 

Syntax

 

 

TXT.gte|P1[|P2]

TXT.Get_to_End|P1[|P2]

 

 

Parameter Explanation

 

P1 - (Input,numeric) Variable with Line-Number.

P2 - (Output) Variable will contain the Text. If omitted, the line is placed on TOS.

 

 

Example

 

'*****************************************************

' EXAMPLE 1: TXT.gte

'*****************************************************

VAR.$$LAA=?path\..\Pics\Test.txt

TXT.ltf|$$LAA

' Get all Text after Line 10 into $$LEF

$$NUM=10

TXT.gte|$$NUM|$$LEF

LEN.$$LEF|$$LEN

MBX.Len of returned Text is:$$LEN

ENR.

 

 

Remarks

 

-

 

Limitations:

 

-

 

 

See also:

 

•   TXT.Load Textfile

•   TXT.Clear

•   TXT.From_Var

•   TXT.Load_pure_Text

•   TXT.Get_pure_Text

•   FIL.Generate numbered Name

•   FIL.Move numbered File

•   ATF - Append-to-File

•   CFF. - Copy-From-File

•   CTF - Copy-To-File

•   COP. - Copy File

•   TXT.Get_Filename

•   TXT.Get_Lenght

•   TXT.To_Var_and_Clear

•     GLC. - Get-Line-Count

•     TXT.Get_Line

•     IEF. / NEF. - If - exist - File

•     LFF - Line-From-File

•     WFF. - Wait-For-File

•     REN. - Rename File/Dir