 #include <fstream>
 #include "../Helpers/CUDAErrorCheckHelpers.h"
 #include "../Helpers/TerminalHelpers.h"
-
 using namespace std;
+
+const string RESULTS_DIRECTORY ("Results/");
+
 
 // RecordingElectrodes Constructor
 RecordingElectrodes::RecordingElectrodes(SpikingNeurons * neurons_parameter) {

	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);
	
	// Writing the data
	weightfile.write((char *)synapses->weights, synapses->total_number_of_synapses*sizeof(float));


void RecordingElectrodes::write_spikes_to_file(Neurons *neurons, int epoch_number) {
	// Get the names
	string file = RESULTS_DIRECTORY + "Epoch" + to_string(epoch_number) + "_";
	// Open the files
	ofstream spikeidfile, spiketimesfile;
	spikeidfile.open((file + "SpikeIDs.bin"), ios::out | ios::binary);
