Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space WBRIDGE and version 7.5.1

...

Parameters of Action "write"

NameTypeDirectionDescription
nameStringin

Fully qualified file name of the file you want to write, including the path.

Multiexcerpt include
MultiExcerptNamehint_backslash_in_path
nopaneltrue
PageWithExcerptReading Files

positionIntegerinPosition (in Bytes) from which you want to start writing the file.
dataBlob
 

Content you want to write to the file.
lengthIntegerinLength (in Bytes) of the data you want to write, if you want to only write part of the Blob.

Defining a "write" Action

...

The directory where the file should be created and the file name are defined in the component diagram.

Multiexcerpt include
MultiExcerptNamefile_system_alias
nopaneltrue
PageWithExcerptReading Files

Noteinfo
iconfalse

The directory has to be created before the file can be written (see chapter Creating Directories). If the directory is not created, the error message FSADSM 22 ("Failed creating file") will be reported (refer to Catching Errors).

Related Error Codes

Find a list of all File System Adapter error codes on System Errors of the File System Adapter.

Error CodeDescription
FSASDM/22

Failed creating file.
Either the directory where the file should be written to, is not created, or the filename is too long (Windows limitation).

Writing Data to a Specified Position in a File

...