mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-10-16 23:49:19 +02:00
fallback decode utf8 strict to win 1250
This commit is contained in:
@@ -63,6 +63,8 @@ public sealed class InMemoryFileSystem : IFileSystem
|
||||
public string[] ReadAllLines(string path) =>
|
||||
ReadAllText(path).Split('\n').Select(line => line.TrimEnd('\r')).ToArray();
|
||||
|
||||
public byte[] ReadAllBytes(string path) => Bytes(path);
|
||||
|
||||
public Stream OpenRead(string path) => new MemoryStream(Bytes(path), writable: false);
|
||||
|
||||
public void WriteAllText(string path, string contents) => WithFile(path, contents);
|
||||
|
||||
Reference in New Issue
Block a user