Write each attribute file separately