String-Commands * TXT-Command

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > TXT. Text-File Engine > To LOF / To Var >

String-Commands * TXT-Command

TXT.Get_pure_Text

Previous Top Next


MiniRobotLanguage (MRL)

 

TXT.gpt

TXT.Get_pure_Text

Copy the TXT.-internal Buffer into two Variables using normal Text-Format in Variable 1,
and the Filename in Variable 2.

 

NTFS-Direct

 

Intention

 

This Command is used to get the Text that is in the Internal TXT-Buffer into 2 Variables.

Variable P1 will contain the "pure Text". Variable P2 will receive the filename and Path.
 

This Command-Set can be used together with TXT.lpt to quickly switch between several Text-Files

without loading them each time new from the harddrive.

 

CFF.$$FIL|$$RES

' Load Pure Text

TXT.lpt|$$RE|$$FIL

' get Pure Text

TXT.gpt|$$RES|$$FIL

 

 

Syntax

 

 

TXT.gpt|P1[|P2]

TXT.Get_pure_Text|P1[|P2]

 

 

Parameter Explanation

 

P1 - (Output) Variable with the Textfile.

P2 - (Output) Variable will contain the Path and FIlename.

 

 

Example

 

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

' EXAMPLE 1: TXT.lpt  and TXT.fov etc.

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

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

CFF.$$LAA|$$RES

TXT.lpt|$$RES|$$LAA

TXT.gfn|$$LAB

NVC.$$LAB=Test.txt

 GTO.Lab_failed

EIF.

TXT.gtl|$$LAB

ENR.

 

 

Remarks

 

Can acess very large pathes up to 32767 characters due to the use of NTFS-direct.

 

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

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

•     LFF - Line-From-File

•     WFF. - Wait-For-File

•     REN. - Rename File/Dir