 	CudaSafeCall(cudaMemcpy(synapses->weights, synapses->d_weights, sizeof(float)*synapses->total_number_of_synapses, cudaMemcpyDeviceToHost));
 	// Creating and Opening all the files
 	ofstream synapsepre, synapsepost, weightfile, delayfile;
-	weightfile.open("results/NetworkWeights.bin", ios::out | ios::binary);
-	delayfile.open("results/NetworkDelays.bin", ios::out | ios::binary);
-	synapsepre.open("results/NetworkPre.bin", ios::out | ios::binary);
-	synapsepost.open("results/NetworkPost.bin", ios::out | ios::binary);
+	weightfile.open(RESULTS_DIRECTORY + "NetworkWeights.bin", ios::out | ios::binary);
+	delayfile.open(RESULTS_DIRECTORY + "NetworkDelays.bin", ios::out | ios::binary);
+	synapsepre.open(RESULTS_DIRECTORY + "NetworkPre.bin", ios::out | ios::binary);
+	synapsepost.open(RESULTS_DIRECTORY + "NetworkPost.bin", ios::out | ios::binary);
 	
 	// Writing the data
 	weightfile.write((char *)synapses->weights, synapses->total_number_of_synapses*sizeof(float));

#include <fstream>
#include "../Helpers/CUDAErrorCheckHelpers.h"
#include "../Helpers/TerminalHelpers.h"

using namespace std;

// RecordingElectrodes Constructor
RecordingElectrodes::RecordingElectrodes(SpikingNeurons * neurons_parameter) {


void RecordingElectrodes::write_initial_synaptic_weights_to_file(SpikingSynapses *synapses) {
	ofstream initweightfile;
	initweightfile.open(RESULTS_DIRECTORY + "NetworkWeights_Initial.bin", ios::out | ios::binary);
	initweightfile.write((char *)synapses->weights, synapses->total_number_of_synapses*sizeof(float));
	initweightfile.close();
}
