Beef Corlib
Static Public Member Functions | List of all members
System.IO.File Class Reference

Static Public Member Functions

static Result< void, FileErrorReadAll (StringView path, List< uint8 > outData)
 
static Result< void > WriteAll (StringView path, Span< uint8 > data, bool doAppend=false)
 
static Result< void, FileErrorReadAllText (StringView path, String outText, bool preserveLineEnding=false)
 
static Result< void > WriteAllText (StringView path, StringView text, bool doAppend=false)
 
static Result< void > WriteAllText (StringView path, StringView text, Encoding encoding)
 
static Result< void > WriteAllLines (StringView path, IEnumerator< StringView > enumerator, bool doAppend=false)
 
static Result< void > WriteAllLines (StringView path, IEnumerator< String > enumerator, bool doAppend=false)
 
static bool Exists (StringView fileName)
 
static Result< void, Platform.BfpFileResult > Delete (StringView fileName)
 
static Result< void, Platform.BfpFileResult > Move (StringView fromPath, StringView toPath)
 
static Result< void, Platform.BfpFileResult > Copy (StringView fromPath, StringView toPath)
 
static Result< void, Platform.BfpFileResult > CopyIfNewer (StringView fromPath, StringView toPath)
 
static Result< void, Platform.BfpFileResult > Copy (StringView fromPath, StringView toPath, bool overwrite)
 
static Result< void, Platform.BfpFileResult > SetAttributes (StringView path, FileAttributes attr)
 
static Result< DateTimeGetLastWriteTime (StringView fullPath)
 
static Result< DateTimeGetLastWriteTimeUtc (StringView fullPath)