www.lucersoft.com

   
       Home  |   News  |   Downloads  |   Order  |   Contacts

 

 

Main

Home

Site map

Products

LC Backup

LC Copier

HTML Batch Editor

HTML Batch Editor PRO

Tennis 2001

Freeware

Documentation

HTML Batch Editor PRO

LC Basic

Information

Order

Update Policy

Support

Contacts

Links

 
 
 
 

 
 
 
 
 
 
 
 
 

LoadFromFile

File IO functions


Syntax

 

result = LoadFromFile(FileName)


Description:

 

Loads full file content to variable. Useful if you need a long string variable (for example a large block of HTML code). 


Arguments:

 

Filename - The name of file with a full path.


Examples:

'Load from file
VAR1 = "<!-- MENY START -->(.*?)<!-- MENY SLUTT -->"
VAR2 = LoadFromFile ("d:\\HBEPRO\\var1.txt")
HBEReplaceAllRE(VAR1,VAR2)

 

 

Return value:

 

If the function succeeds, the return value is string value which contains full content of file. If the function fails, the return value is empty string value.

 

 


See also:

 

OpenFile, CloseFile, Read, Write, Put


A CloseFile function is included in the lcbase.dll

 
Last updated: November 2, 2003
Copyright © 2002 Lucersoft

Add to favorites

Back