Reworked "readFile" to use streamreader

This commit is contained in:
Chomp
2025-01-23 13:42:31 +00:00
parent 3127465b35
commit 6dd43a3265
+2 -1
View File
@@ -58,7 +58,8 @@ public class FileUtil
public string ReadFile(string path)
{
return File.ReadAllText(path);
using var reader = new StreamReader(path);
return reader.ReadToEnd();
}
public void WriteFile(string filePath, string jsonProfile)