Click or drag to resize

ExtensionsFileIO Methods

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