The OpenAppend function opens a text file for writing. If the file already exists, the file will be opened for writing at the end of the file and any previous information will not be erased.

 

If the file cannot be opened, the function will return false.

 

To add more records to the file use the WriteLine and WriteString functions.

 

If a colon is included in the path, then the path is literal and used as is, so you can open any file in any folder. If a colon is not included, then the path is relative to the Trading Blox directory. If a // is included, then the path is literal so you can access any file on any folder on any server.

 

If the file name includes a colon, then the file name is considered a full path, and that full path will be used.

If the file name starts with \\ then the file name is considered a full path to a server location.

If the file name does not contain a colon or \\, then the file name is considered relative to the main Trading Blox folder.

 

Syntax:

fileNumber = fileManager.OpenAppend( aFullFileName )

 

Parameter:

Description:

aFullFileName

The full Path & File-name of the file to open.

 

Example:

'  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
VARIABLES: fileName     Type: String
VARIABLES: fileNumber   Type: Integer
'  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'  Open file named so additional information can be appended.
fileNumber = fileManager.OpenAppend( fileName )

Returns:

fileNumber = Trading Blox assigned file identication number of the file opened so additional information can be added.

 

Links:

OpenRead, OpenWrite, WriteLine, WriteString

See Also:

File Manager

 


Edit Time: 9/25/2017 09:09:54 AM


Topic ID#: 438

 

Created with Help & Manual 7 and styled with Premium Pack Version 2.80 © by EC Software