@Override
	public void writeFile(int[] numbers, int name){
		for (int i : numbers){
			buffer = buffer.putInt(i);
		}
		buffer.rewind();

		FileChannel fc = null;
		try {
			File file = getFile(name);
			file.createNewFile();
			FileOutputStream fs = new FileOutputStream(file);
			fc = fs.getChannel();
			fc.write(buffer, 0);
			fs.close();
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			buffer.clear();
			try {
				if (fc != null) {
					fc.close();
				}
			} catch (IOException e) {}
		}
	}