FileExt Class

File extensions.

Inheritance Hierarchy

System.Object
  UltimateXR.Extensions.System.IO.FileExt
Namespace: UltimateXR.Extensions.System.IO
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public static class FileExt


The FileExt type exposes the following members.

Methods

NameDescription
Public methodStatic memberRead Reads bytes from a file asynchronously. Multiple file locations are supported:  
  • Files in streamingAssetsPath
  • Files in an http:// location
  • Files in a file:// location
  All other Uris will be considered file paths and the file:// location will be added.
Public methodStatic memberReadText Reads text from a file asynchronously. Multiple file locations are supported:  
  • Files in streamingAssetsPath
  • Files in an http:// location
  • Files in a file:// location
  All other Uris will be considered file paths and the file:// location will be added.
Public methodStatic memberTryReadText Reads text from a file asynchronously. Multiple file locations are supported:  
  • Files in streamingAssetsPath
  • Files in an http:// location
  • Files in a file:// location
  All other Uris will be considered file paths and the file:// location will be added.
Public methodStatic memberWrite(Byte[], String, CancellationToken) Asynchronously writes an Array of Byte to a file at path.
Public methodStatic memberWrite(String, Stream, CancellationToken) Asynchronously writes the content of an sourceStream to a file at path.
Public methodStatic memberWriteText Asynchronously writes text to a file location.

See Also

Reference

UltimateXR.Extensions.System.IO Namespace