Navigation:  thinBasic Modules > File >

FILE_Append

Previous pageReturn to chapter overviewNext page

 

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