src/com/mmpp/motivationapp/backend/Motivator.java
public void importHistoryMessagesFromFile(String filename) {
		File file = new File(filename);
		try {
			BufferedReader in = new BufferedReader(new FileReader(file));
			while(in.ready()) {
				String s = in.readLine();
				addHistoryMessage(s);
			}
			in.close();
		} catch(FileNotFoundException e) {
			System.err.println("Could not find the file with the specified filename");
			e.printStackTrace();
		} catch(IOException e) {
			System.err.println("I/O error");
			e.printStackTrace();
		}
		
	}
/**
	 * Adds the templates for history messages
	 * @param filename the file containing the templates
	 */
Adds the templates for history messages
@param filename the file containing the templates
Adds the templates for history messages @param filename the file containing the templates
public void importHistoryMessagesFromFile(String filename) {
		File file = new File(filename);
		try {
			BufferedReader in = new BufferedReader(new FileReader(file));
			while(in.ready()) {
				String s = in.readLine();
				addHistoryMessage(s);
			}
			in.close();
		} catch(FileNotFoundException e) {
			System.err.println("Could not find the file with the specified filename");
			e.printStackTrace();
		} catch(IOException e) {
			System.err.println("I/O error");
			e.printStackTrace();
		}
	}
public void importHistoryMessagesFromFile ( String filename ) { File file = new File ( filename ) ; try { BufferedReader in = new BufferedReader ( new FileReader ( file ) ) ; while ( in . ready ( ) ) { String s = in . readLine ( ) ; addHistoryMessage ( s ) ; } in . close ( ) ; } catch ( FileNotFoundException e ) { System . err . println ( "Could not find the file with the specified filename" ) ; e . printStackTrace ( ) ; } catch ( IOException e ) { System . err . println ( "I/O error" ) ; e . printStackTrace ( ) ; } }
Adds the templates for history messages
 @param filename the file containing the templates
Adds the templates for history messages @param filename the file containing the templates