public void saveFile(double[] solution, int input_hidden_separator, int hidden_output_separator)
	{
		BufferedWriter bufferedWriter = null;
	    FileWriter fileWriter;
		try {
			fileWriter = new FileWriter(file);
			bufferedWriter = new BufferedWriter(fileWriter);
			
			for (int i = 0; i < solution.length; i++) {
				if (i == input_hidden_separator || i == hidden_output_separator) {
					bufferedWriter.write("-");
					bufferedWriter.newLine();
				}
				
				bufferedWriter.write(solution[i] + "");
				bufferedWriter.newLine();
			}
		} catch (FileNotFoundException ex) {
            ex.printStackTrace();
        } catch (IOException e) {
			e.printStackTrace();
		} finally {
            try {
                if (bufferedWriter != null) {
                    bufferedWriter.flush();
                    bufferedWriter.close();
                }
            } catch (IOException ex) {
                ex.printStackTrace();
            }
        }
	}