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

 
 
 
 

 
 
 
 
 
 
 
 
 

Write

File IO functions


Syntax

 

result = Write (NumberOfFile, value)


Description:

 

Writes a value to file - always as string. 


Arguments:

 

NumberOfFile - A number of the file used with FileOpen. 

Value - A value which is written to a file.


Examples:

In this example value '2' is written as string.

res = OpenFile(1,"D:\\file.txt","w")

if (res)
   val1 = "Hello"
   val2 = 2
   res1 = Write (1,val1)
   res2 = Write (1,val2)
   CloseFile(1)
EndIf

 

 

Return value:

 

If the function succeeds, the return value is True. If the function fails, the return value is False

 

 

All values in the Write function is written as string. If you need write binary data use Put function.


See also:

 

Read, Put


A Write function is included in the lcbase.dll

 
Last updated: November 2, 2003
Copyright © 2002 Lucersoft

Add to favorites

Back