public void readStringFromFile()
   {
      // make sure the file is legit.
      if(!fl_file.exists())
      {
         fl_handler.textFileFailed(UIStrings.ERROR_BAD_FILEPATH + fl_file.getPath());
      }

      // read from the file.
      String file_contents;
      try
      {
         file_contents = new Scanner(fl_file).useDelimiter("\\Z").next();
      }
      catch (FileNotFoundException ex)
      {
         if(fl_handler != null)
         {
            fl_handler.textFileFailed(ex.getMessage());
         }
         return;
      }

      // count the words in the text
      int wc = countWordsInString(file_contents);

      if(fl_handler != null)
      {
         fl_handler.textFileLoaded(fl_file, wc, file_contents);
      }
   }