FILE_Append

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > File > FILE: functions working on files >

FILE_Append

 

Description

 

Output a StringBuffer to a file. Buffer is appended at the end of the current file content.

 

Syntax

 

n = FILE_Append(FileName, StringBuffer)

 

Returns

 

Number.

0 means no errors.

 

Parameters

 

 

Name

Type

Optional

Meaning

FileName

String

No

Name of the file

StringBuffer

String

No

String to append to file

 

Remarks

 

If FileName does not exists it is created.

This function does not append anything other than data found in StringBuffer. In case it is needed some kind of end of line char, please add it to the end of StringBuffer variable.

 

Restrictions

 

See also

 

File Module,

 

Examples