public static void writeToSpecLineFile(File file, String data, int line) {
		Scanner sc = null;
		Formatter formatter = null;
		try {
			sc = new Scanner(file);
			formatter = new Formatter(file);
		} catch (FileNotFoundException fnfe) {
			fnfe.printStackTrace();
			return;
		}
		
		ArrayList<String> arrList = new ArrayList<String>();
		
		while (sc.hasNextLine()) {
			arrList.add(sc.nextLine());
		}
		sc.close();
		
		int count = 1;
		for (String s : arrList) {
			if (count == line) {
				formatter.format(data + "\n");
			} else {
				formatter.format(s + "\n");
			}
			count++;
		}
		formatter.close();
	}