Ejemplo n.º 1
0
        public void OutputToFile(Outputtable output)
        {
            Directory.CreateDirectory(OutputFolder ?? throw new NullReferenceException("Folder could not be created"));

            using (StreamWriter streamWriter = new StreamWriter(FullPath)) {
                streamWriter.Write(output.AsString);
            }

            ExperimentEvents.OutputSuccessfullyUpdated(FullPath);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Outputs the Outputtable as a file
        /// </summary>
        /// <param name="output"></param>
        void OutputFile(Outputtable output)
        {
            Debug.Log($"Writing to file {outputPath}");
            string folder = Path.GetDirectoryName(outputPath);

            if (folder != null)
            {
                Directory.CreateDirectory(folder);
            }

            using (StreamWriter streamWriter = new StreamWriter(outputPath)) {
                streamWriter.Write(output.AsString);
            }
        }
Ejemplo n.º 3
0
 public static void OutputUpdated(Outputtable output)
 {
     OnOutputUpdated?.Invoke(output);
 }
Ejemplo n.º 4
0
 public static void UpdateOutput(Outputtable output)
 {
     OnTimeToUpdateOutput?.Invoke(output);
 }
Ejemplo n.º 5
0
 void OutputToFile(Outputtable output)
 {
     file.OutputToFile(output);
 }