app/src/main/java/com/TyFacry/simpletodolist/MainActivity.java
private void saveItems() {
        try {
            org.apache.commons.io.FileUtils.writeLines(getDataFile(), items);
        }

        catch (IOException e) {
             Log.e("MainActivity", "Error writing items", e);

        }
    }
// This function saves items by writing them into the data file
This function saves items by writing them into the data file
This function saves items by writing them into the data file
private void saveItems() {
        try {
            org.apache.commons.io.FileUtils.writeLines(getDataFile(), items);
        }
        catch (IOException e) {
             Log.e("MainActivity", "Error writing items", e);
        }
    }
private void saveItems ( ) { try { org . apache . commons . io . FileUtils . writeLines ( getDataFile ( ) , items ) ; } catch ( IOException e ) { Log . e ( "MainActivity" , "Error writing items" , e ) ; } }
This function saves items by writing them into the data file
This function saves items by writing them into the data file