@Override
	public void build(String dictName) {
		BufferedReader reader = null;
		StringBuffer stringBuffer = null;
		String string = null;
		try {
			reader = new BufferedReader(new FileReader(new File(dictName)));
			string = reader.readLine();
			while (string != null) {
				stringBuffer = new StringBuffer(string);
//				System.out.println("read: " + stringBuffer);
				while (stringBuffer.length() > 0) {					
					insert(stringBuffer.toString() + '$');
					symbolAccount++;
					stringBuffer.deleteCharAt(0);
				}
				string = reader.readLine();
			}
		} catch (Exception e) {
			e.printStackTrace();
		}finally{
			try {
				reader.close();
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
	}