C# Class InTheHand.Storage.FileIO

Provides helper methods for reading and writing files that are represented by objects of type IStorageFile.
PlatformVersion supported AndroidAndroid 4.4 and later iOSiOS 9.0 and later tvOStvOS 9.0 and later TizenTizen 3.0 Windows UWPWindows 10 Windows StoreWindows 8.1 or later Windows Phone StoreWindows Phone 8.1 or later Windows Phone SilverlightWindows Phone 8.0 or later Windows (Desktop Apps)Windows Vista or later
Exibir arquivo Open project: inthehand/Charming

Public Methods

Method Description
AppendLinesAsync ( IStorageFile file, IEnumerable lines ) : System.Threading.Tasks.Task

Appends lines of text to the specified file.

AppendLinesAsync ( IStorageFile file, IEnumerable lines, UnicodeEncoding encoding ) : System.Threading.Tasks.Task

Appends lines of text to the specified file using the specified character encoding.

AppendTextAsync ( IStorageFile file, string contents ) : System.Threading.Tasks.Task

Appends text to the specified file.

AppendTextAsync ( IStorageFile file, string contents, UnicodeEncoding encoding ) : System.Threading.Tasks.Task

Appends text to the specified file using the specified character encoding.

ReadLinesAsync ( IStorageFile file ) : Task>

Reads the contents of the specified file and returns lines of text.

ReadLinesAsync ( IStorageFile file, UnicodeEncoding encoding ) : Task>

Reads the contents of the specified file using the specified character encoding and returns lines of text.

ReadTextAsync ( IStorageFile file ) : Task

Reads the contents of the specified file and returns text.

ReadTextAsync ( IStorageFile file, UnicodeEncoding encoding ) : Task

Reads the contents of the specified file using the specified character encoding and returns text.

WriteLinesAsync ( IStorageFile file, IEnumerable lines ) : System.Threading.Tasks.Task

Writes lines of text to the specified file.

WriteLinesAsync ( IStorageFile file, IEnumerable lines, UnicodeEncoding encoding ) : System.Threading.Tasks.Task

Writes lines of text to the specified file using the specified character encoding.

WriteTextAsync ( IStorageFile file, string contents ) : System.Threading.Tasks.Task

Writes text to the specified file.

WriteTextAsync ( IStorageFile file, string contents, UnicodeEncoding encoding ) : System.Threading.Tasks.Task

Writes text to the specified file using the specified character encoding.

Method Details

AppendLinesAsync() public static method

Appends lines of text to the specified file.
public static AppendLinesAsync ( IStorageFile file, IEnumerable lines ) : System.Threading.Tasks.Task
file IStorageFile The file that the lines are appended to.
lines IEnumerable The list of text strings to append as lines.
return System.Threading.Tasks.Task

AppendLinesAsync() public static method

Appends lines of text to the specified file using the specified character encoding.
public static AppendLinesAsync ( IStorageFile file, IEnumerable lines, UnicodeEncoding encoding ) : System.Threading.Tasks.Task
file IStorageFile The file that the lines are appended to.
lines IEnumerable The list of text strings to append as lines.
encoding UnicodeEncoding The character encoding of the file.
return System.Threading.Tasks.Task

AppendTextAsync() public static method

Appends text to the specified file.
public static AppendTextAsync ( IStorageFile file, string contents ) : System.Threading.Tasks.Task
file IStorageFile The file that the text is appended to.
contents string The text to append.
return System.Threading.Tasks.Task

AppendTextAsync() public static method

Appends text to the specified file using the specified character encoding.
public static AppendTextAsync ( IStorageFile file, string contents, UnicodeEncoding encoding ) : System.Threading.Tasks.Task
file IStorageFile The file that the text is appended to.
contents string The text to append.
encoding UnicodeEncoding The character encoding of the file.
return System.Threading.Tasks.Task

ReadLinesAsync() public static method

Reads the contents of the specified file and returns lines of text.
public static ReadLinesAsync ( IStorageFile file ) : Task>
file IStorageFile The file to read.
return Task>

ReadLinesAsync() public static method

Reads the contents of the specified file using the specified character encoding and returns lines of text.
public static ReadLinesAsync ( IStorageFile file, UnicodeEncoding encoding ) : Task>
file IStorageFile The file to read.
encoding UnicodeEncoding The character encoding of the file.
return Task>

ReadTextAsync() public static method

Reads the contents of the specified file and returns text.
public static ReadTextAsync ( IStorageFile file ) : Task
file IStorageFile The file to read.
return Task

ReadTextAsync() public static method

Reads the contents of the specified file using the specified character encoding and returns text.
public static ReadTextAsync ( IStorageFile file, UnicodeEncoding encoding ) : Task
file IStorageFile The file to read.
encoding UnicodeEncoding The character encoding of the file.
return Task

WriteLinesAsync() public static method

Writes lines of text to the specified file.
public static WriteLinesAsync ( IStorageFile file, IEnumerable lines ) : System.Threading.Tasks.Task
file IStorageFile The file that the lines are written to.
lines IEnumerable The list of text strings to append as lines.
return System.Threading.Tasks.Task

WriteLinesAsync() public static method

Writes lines of text to the specified file using the specified character encoding.
public static WriteLinesAsync ( IStorageFile file, IEnumerable lines, UnicodeEncoding encoding ) : System.Threading.Tasks.Task
file IStorageFile The file that the lines are written to.
lines IEnumerable The list of text strings to append as lines.
encoding UnicodeEncoding The character encoding of the file.
return System.Threading.Tasks.Task

WriteTextAsync() public static method

Writes text to the specified file.
public static WriteTextAsync ( IStorageFile file, string contents ) : System.Threading.Tasks.Task
file IStorageFile The file that the text is written to.
contents string The text to write.
return System.Threading.Tasks.Task

WriteTextAsync() public static method

Writes text to the specified file using the specified character encoding.
public static WriteTextAsync ( IStorageFile file, string contents, UnicodeEncoding encoding ) : System.Threading.Tasks.Task
file IStorageFile The file that the text is written to.
contents string The text to write.
encoding UnicodeEncoding The character encoding of the file.
return System.Threading.Tasks.Task