SysFileOpenAsyncΒΆ

This function block is used for opening an existing file or creating a new one.

The output is hFile, a handle to the file. A file handle is an identifier for a file and is used as an input for other function blocks.

Input-Variable Data type Description
stFileName STRING Filename
stMode STRING

Mode to open the file:

  • w write (file is created or overwritten)
  • r read (file is only opened for reading if it exists)
  • rw read and write (file is created if not existing, opened for reading if it exists)
  • a append (file is opened for writing if it exists, created if it exists not, data is appended at the end always.)