private static void readClusterFile(String clusterFile, String file) {
		ArrayList<String> queries = new ArrayList<String>();
		ArrayList<Integer> SKU = new ArrayList<Integer>();

		try {
			BufferedReader bReader = new BufferedReader(new FileReader(file));
			String line = bReader.readLine();
			while ((line = bReader.readLine()) != null) {
				String[] lineArray = line.split(",");
				if (lineArray.length < 1 || lineArray == null
						|| Float.parseFloat(lineArray[1]) > Integer.MAX_VALUE) {
					continue;
				}
				queries.add(String.valueOf(lineArray[3].trim()));
				SKU.add(Integer.valueOf(lineArray[1]));
			}
			bReader.close();
			// System.out.println(queries.size());
			// System.out.println(SKU.size());

			BufferedReader bReader1 = new BufferedReader(new FileReader(
					clusterFile));
			BufferedWriter bWriter = new BufferedWriter(new FileWriter("xbox/kmeans_train.txt"));
			String line1 = bReader1.readLine();
			while ((line1 = bReader1.readLine()) != null) {
				String[] splitColon = line1.split(":");
				if (splitColon.length < 2 || splitColon[1].split(",") == null) {
					continue;
				}
				String[] splitComma = splitColon[1].split(",");
				// System.out.println(Arrays.toString(splitComma));
				String centroidQuery1 = findCentroidEditDistance(splitComma);
				//String centroidQuery2 = findCentroidWordCount(splitComma);
				bWriter.write(centroidQuery1);
				bWriter.newLine();
				bWriter.flush();
			}
			bReader1.close();
			bWriter.close();
		} catch (Exception exp) {
			exp.printStackTrace();
		}
	}