Discuss the advantages of organizing data storage as separate files and organizing data storage using a database approach?

Discuss the advantages of organizing data storage as separate files and organizing data storage using a database approach? Which do you think is favorable and why?

Organizing data in separate files gives us the flexibility to differentiate between different layers of data. Different files represent unique form of data and the identification of these files is easy.

When data is organized in the form of databases, different files in the data storage has a different identifier in the database. The data files are indexed and accessed by this identifier.

I would prefer the database approach as it is useful in providing the data a hierarchical structure that will make it easy to use different techniques to sort and search the data.