Water 5-Formatting and Serializing-Format Other
method to_txt
Contract
Return typewob
Parameter keyDefault valueType
print_keytrueboolean
field_separator"
"string
key_value_separator"="string
Water Contract
<method to_txt
  print_key     =true
  field_separator="&amp;#10;"
  key_value_separator="="/>

See also: to_htm, to_cxs

to_txt is good for printing a human-readable version of an object to be sent as plain text in an email or .txt file. Returns a readable string with no embedded hypertext tags. It prints the strings in the content for hypertext objects. A thing prints the value of the string keys with a new line between each field. It flattens the object and therefore isn't good for printing nested objects to be read again. If you would like the key printed for fields of a thing use print_key=true .