public void writeWritingAccesses() {

		String path = output.toString() + "/" + measurementName
				+ "_writingAccesses.txt";
		
		writingAccesses = new File(path);

		
		if (writingAccesses.exists()) {
			try {

				fr = new FileReader(path);
				br = new BufferedReader(fr);
				StringBuffer buffer = new StringBuffer();

				for (int value : sortStat.getWriteAccesses()) {
					buffer.append(br.readLine().concat(" ")
							.concat(Integer.toString(value)));
					buffer.append(System.getProperty("line.separator"));
				}

				writer = new FileWriter(writingAccesses, false);
				writer.write(buffer.toString());
				writer.close();
				br.close();
				fr.close();

			} catch (Exception ex) {

			}
		} else {

			try {
				writer = new FileWriter(writingAccesses, false);

				for (int value : sortStat.getWriteAccesses()) {
					writer.write(Integer.toString(value));
					writer.write(System.getProperty("line.separator"));
				}
				writer.flush();
				writer.close();

			} catch (IOException e) {
				e.printStackTrace();
			}
		}
	}