method reads existing data from file and adds them into textlist concode_field_sep String fileName concode_elem_sep String MESSAGE_CLEARED concode_elem_sep String MESSAGE_DELETE_ERROR concode_elem_sep String FILE_LOAD_ERROR concode_elem_sep File opFile concode_elem_sep int SEARCH_INDEX concode_elem_sep String SEARCH_COMMAND concode_elem_sep String DELETE_COMMAND concode_elem_sep String MESSAGE_SEARCH_NOTHING concode_elem_sep String FILE_WRITE_ERROR concode_elem_sep String INVALID_COMMAND_PROMPT concode_elem_sep Scanner in concode_elem_sep String FILE_CREATE_ERROR concode_elem_sep String DISPLAY_COMMAND concode_elem_sep ArrayList<String> textList concode_elem_sep String MESSAGE_DELETE_TASK concode_elem_sep String MESSAGE_DISPLAY_EMPTY concode_elem_sep String MESSAGE_SORT_RESULT concode_elem_sep String MESSAGE_WELCOME concode_elem_sep String MESSAGE_SEARCH_RESULTS concode_elem_sep String CLEAR_COMMAND concode_elem_sep String ADD_COMMAND concode_elem_sep String COMMAND_PROMPT concode_elem_sep String MESSAGE_DISPLAY_ITEMS concode_elem_sep int DELETE_INDEX concode_elem_sep String SORT_COMMAND concode_elem_sep String MESSAGE_ADDED concode_elem_sep int ADD_INDEX concode_field_sep ArrayList<String> searchForString concode_elem_sep void displayText concode_elem_sep void queryFileName concode_elem_sep void displayResults concode_elem_sep boolean isTextEmpty concode_elem_sep String getCommand concode_elem_sep void addTextToFile concode_elem_sep void main concode_elem_sep void promptUserForInput concode_elem_sep void sortListLexico concode_elem_sep void showToUser concode_elem_sep void executeCommand concode_elem_sep boolean isExistingFile concode_elem_sep void writeToFile concode_elem_sep boolean isAbleToDelete concode_elem_sep void clearAllText concode_elem_sep void deleteTextFromFile concode_elem_sep void createNewFile
void function ( ) { try { BufferedReader loc0 = new BufferedReader ( new FileReader ( fileName ) ) ; String loc1 = null ; while ( ( loc1 = loc0 . readLine ( ) ) != null ) { textList . add ( loc1 ) ; } loc0 . close ( ) ; } catch ( IOException loc0 ) { showToUser ( FILE_LOAD_ERROR ) ; loc0 . printStackTrace ( ) ; } }