Contents
Display Legacy Contents

 Print
    File Open    
Opens a specified text file.

Parameters

File ID <numeric>

The identification to the file that the user wants to open. This File ID will be used along the project to interact with the openned file. It works like an handler to the file.

 
File Name <string>

The name of the openned file. The user should indicate the full path of the file.

 
Details

 

Opening Mode <unquoted string>: indicate the opening mode that user wants to set to this opened file. The possible values for this parameter are: Read, Write, Append (Write) or dynamic. If the user wants to write data in the end of the file, user should choose option Append (Write).
 

Encoding<numeric>: indicates the file encoding to use.
 
  1. Unicode UTF-16 LE (each character uses 2 bytes)
  2. ANSI/BINARY (each character uses 1 byte)
  3. Unicode UTF-8 (each character uses 1 byte to 4 bytes)

     
  • In Unicode UTF-16 LE, if the file does not exist, the BOM (Byte Order Mark) 0xFEFF will be added to the beginning of the file. If the file already exists the first 2 bytes must be 0xFEFF.
  • In Unicode UTF-8, if the file does not exist, no BOM (Byte Order Mark) will be added. If the file already exists the first 3 bytes may optionally be 0xEFBBBF.

See also
Samples

 
 
Updated: 3/22/2018 9:36 AM