Generic read/write for file_types.