Arts >> Music >> Music Genres

Unix File Field Types Explained

A Unix file format (often used for data tables) contains three kinds of fields defined in the first three non-comment lines:

  1. Field name – Each word in the first non-comment (non-#) line names a field.
  2. Field type – Each word in the second line specifies the data type:
    • s = string
    • b = byte
    • B = boolean
    • w = word (4-byte integer)
    • a = array of bytes (binary data); e.g., ai = array of integers, ab = array of bytes.
  3. Field comment – Each word in the third line provides a comment for the corresponding field.

This structure allows for self-describing data files that can be parsed programmatically.

Music Genres

Related Categories