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.Load_pure_Text 

Previous Top Next


MiniRobotLanguage (MRL)

 

TXT.lpt

TXT.Load_pure_Text

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

 

NTFS-Direct

 

Intention

 

This Command is used to set the Internal TXT-Buffer "as if the file would have been loaded" from 2 Variables.

Variable P1 must be the "pure Text". Variable P2 must contain the filename and Path.

The content of the Variable can be created with the TXT.gpt or the Get_pure_Text Command.

Or it can just be an Text that was loaded with CFF. and the filename and Path in Variable P2.

This Command-Set can be used 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.lpt|P1|P2

TXT.Load_pure_Text|P1|P2

 

 

Parameter Explanation

 

P1 - (Input) Variable with the Textfile, this one must have been created using the tov or toc-Command.

 

 

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. - Text File Engine

• TXT.Load Textfile

• TXT.Clear

• TXT.From_Var

• OPT. - Optional Settings

• TXT.Load Unicode_File

• TXT.Load_pure_Text

• TXT.Save_File

•   Push_Intern

•   Pop_Intern  

•   Push_Keep

•   Pop_Keep

•   Clear_Intern

•   TXT.Load Textfile

•   TXT.Clear  

•   TXT.To_Var

•   TXT.From_Var

•   TXT.To_Var_and_Clear

•   TXT.Get_Filename

•   TXT.Get_Lenght