In Android, entering data in SQLite uses more time and more lines of code than in .txt file.
Saving data in .txt and use FileReader is convenient to get the data.
What is the advantage of Using SQLite rather than File ?
In Android, entering data in SQLite uses more time and more lines of code than in .txt file.
Saving data in .txt and use FileReader is convenient to get the data.
What is the advantage of Using SQLite rather than File ?
The main reasons which immediately spring to mind, which SQLite gives you and a simple file does not:
O(log n) rather than O(n))Note that trying to solve any of these problems with using a flat file yourself is going to start moving into database territory – but of course you really don't want to write that sort of thing yourself.