dm_file_write Subroutine

public subroutine dm_file_write(path, content, raw, error)

Writes content to given file (ASCII or binary).

The routine returns the following error codes in argument error:

  • E_IO if opening the file failed.
  • E_WRITE if writing to file failed.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: path

Output file path.

character(len=*), intent(in) :: content

Bytes to write.

logical, intent(in), optional :: raw

Unformatted output if true.

integer, intent(out), optional :: error

Error code.