The simplest way to type data is to use the following functions:
DtDtsFileToAttributeList()
DtDtsFileToAttributeValue()
When you use these functions, a file is typed and a single attribute, or the entire list, is retrieved. System calls are made, data is typed, and the attribute is retrieved. These functions call the intermediate data-typing functions.
DtDtsBufferToAttributeList()
DtDtsBufferToAttributeValue()
Buffers are assumed to have a mode that matches regular files that have read/write permissions. See "Advanced Data Typing" to type read-only buffers.