Skip to main content
Version: v4 (Stable)

Open

Open(filename AS String, flags AS Integer[, nCreationFormat AS Integer]) AS Boolean

Opens the file <filename>.

The parameter <flags> defines the open options as a combination of the following flags:

  • modeRead = &h0000
  • modeWrite = &h0001
  • modeReadWrite = &h0002
  • shareExclusive = &h0010
  • shareDenyWrite = &h0020
  • shareDenyRead = &h0030
  • shareDenyNone = &h0040
  • modeCreate = &h1000
  • modeNoTruncate = &h2000
  • TypeText = &h4000
  • TypeBinary = &h8000

On file creation, set the <nCreationFormat> parameter to specify the file format:

  • 1 for an ANSI file (default value)
  • 2 for a UNICODE file
  • 4 for a UTF8 file
  • 5 for a binary file