mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +02:00
Changed sharing in File.ReadAll
This commit is contained in:
parent
c8d2d4852e
commit
31608be8a9
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ namespace System.IO
|
||||||
public static Result<void, FileError> ReadAll(StringView path, List<uint8> outData)
|
public static Result<void, FileError> ReadAll(StringView path, List<uint8> outData)
|
||||||
{
|
{
|
||||||
FileStream fs = scope FileStream();
|
FileStream fs = scope FileStream();
|
||||||
var result = fs.Open(path, .Open, .Read);
|
var result = fs.Open(path, .Open, .Read, .ReadWrite);
|
||||||
if (result case .Err(let err))
|
if (result case .Err(let err))
|
||||||
return .Err(.OpenError(err));
|
return .Err(.OpenError(err));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue