public static Account getAccountByName(String name, String folderpath)
	{
		Account a = null;
		List<Account> accountList = new ArrayList<Account>();
		File dir = new File(folderpath);
		File[] files = dir.listFiles();
		for (File file : files)
		{
			if (file.getName().contains("."))
				continue;
			
			accountList.add(FileUtil.readAccount(folderpath + "/" + file.getName()));			
		}
		// ƥӦ˻id
		for (int i = 0; i < accountList.size(); i++)
		{
			if (accountList.get(i).getNumber().equals(name))
			{
				a = accountList.get(i);
				break;
			}
		}		
		return a;
	}