ReadAllText not ReadAllLines

This commit is contained in:
Matt Nadareski
2023-01-20 21:41:05 -08:00
parent f6298dfe89
commit 1fa19489a3
3 changed files with 3 additions and 2 deletions

View File

@@ -38,6 +38,7 @@
- More strict when custom parameters editing
- Use msbuild for .NET Framework 4.8
- Update nuget packages
- ReadAllText not ReadAllLines
### 2.4 (2022-10-26)
- Update to DIC 20211001

View File

@@ -496,7 +496,7 @@ namespace MPF.Library
return BitConverter.ToString(bytes).Replace("-", string.Empty);
}
return string.Join("\n", File.ReadAllLines(filename));
return File.ReadAllText(filename);
}
/// <summary>

View File

@@ -344,7 +344,7 @@ namespace MPF.Modules
return BitConverter.ToString(bytes).Replace("-", string.Empty);
}
return string.Join("\n", File.ReadAllLines(filename));
return File.ReadAllText(filename);
}
/// <summary>