Download data/Assets/Scripts/Learning/Agents/EvalRecorder.cs from introvoyz042/CRESSim: direct link, hf CLI and curl.
- Browser
- Download file 509 Bytes
-
https://huggingface.co/datasets/introvoyz042/CRESSim/resolve/main/data/Assets/Scripts/Learning/Agents/EvalRecorder.cs
- Command line
-
hf download hf://datasets/introvoyz042/CRESSim/data/Assets/Scripts/Learning/Agents/EvalRecorder.cs
-
curl -L -o EvalRecorder.cs https://huggingface.co/datasets/introvoyz042/CRESSim/resolve/main/data/Assets/Scripts/Learning/Agents/EvalRecorder.cs
509 Bytes
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using UnityEngine; | |
| public class EvalRecorder : MonoBehaviour | |
| { | |
| public virtual void InitializeFile(string fileName) | |
| { | |
| using (StreamWriter writer = new StreamWriter(fileName, false)) | |
| { | |
| } | |
| } | |
| public virtual void RecordLine(string fileName, string text) | |
| { | |
| using (StreamWriter writer = new StreamWriter(fileName, true)) | |
| { | |
| writer.WriteLine(text); | |
| } | |
| } | |
| } | |