Click or drag to resize

ExtensionsFileIO Class

Provides helper methods for reading, writing and checking files in Windows Desktop applications and Universal Windows Plattform.
Inheritance Hierarchy
SystemObject
  CauldronExtensionsFileIO

Namespace:  Cauldron
Assembly:  Cauldron (in Cauldron.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax
C#
public static class ExtensionsFileIO

The ExtensionsFileIO type exposes the following members.

Methods
  NameDescription
Public methodStatic memberExistsAsync
Determines whether the specified file exists.
Public methodStatic memberReadBytesAsync
Reads the contents of the specified file and returns a byte array.
Public methodStatic memberReadTextAsync(FileInfo)
Reads the contents of the specified file and returns text.
Public methodStatic memberReadTextAsync(DirectoryInfo, String)
Reads the contents of the specified file and returns text.
Public methodStatic memberReadTextAsync(FileInfo, Encoding)
Reads the contents of the specified file and returns text.
Public methodStatic memberReadTextAsync(DirectoryInfo, String, Encoding)
Reads the contents of the specified file and returns text.
Public methodStatic memberWriteBytesAsync
Writes an array of bytes of data to the specified file.
Public methodStatic memberWriteTextAsync(FileInfo, String)
Creates a new file, writes the specified string to the file, and then closes the file. If the target file already exists, it is overwritten.
Public methodStatic memberWriteTextAsync(FileInfo, String, Encoding)
Creates a new file, writes the specified string to the file, and then closes the file. If the target file already exists, it is overwritten.
Top
See Also