C# 클래스 InTheHand.Storage.PathIO

Provides helper methods for reading and writing a file using the absolute path or URI of the file.
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
파일 보기 프로젝트 열기: inthehand/Charming 1 사용 예제들

공개 메소드들

메소드 설명
AppendLinesAsync ( string absolutePath, IEnumerable lines ) : System.Threading.Tasks.Task

Appends lines of text to the file at the specified path or URI.

AppendLinesAsync ( string absolutePath, IEnumerable lines, UnicodeEncoding encoding ) : System.Threading.Tasks.Task

Appends lines of text to the file at the specified path or URI using the specified character encoding.

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

Appends text to the file at the specified path or URI.

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

Appends text to the file at the specified path or URI using the specified character encoding.

ReadLinesAsync ( string absolutePath ) : Task>

Reads the contents of the file at the specified path or URI and returns lines of text.

ReadLinesAsync ( string absolutePath, UnicodeEncoding encoding ) : Task>

Reads the contents of the file at the specified path or URI using the specified character encoding and returns lines of text.

ReadTextAsync ( string absolutePath ) : Task

Reads the contents of the file at the specified path or URI and returns text.

ReadTextAsync ( string absolutePath, UnicodeEncoding encoding ) : Task

Reads the contents of the file at the specified path or URI using the specified character encoding and returns text.

WriteLinesAsync ( string absolutePath, IEnumerable lines ) : System.Threading.Tasks.Task

Writes lines of text to the file at the specified path or URI.

WriteLinesAsync ( string absolutePath, IEnumerable lines, UnicodeEncoding encoding ) : System.Threading.Tasks.Task

Writes lines of text to the file at the specified path or URI using the specified character encoding.

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

Writes text to the file at the specified path or URI.

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

Writes text to the file at the specified path or URI using the specified character encoding.

메소드 상세

AppendLinesAsync() 공개 정적인 메소드

Appends lines of text to the file at the specified path or URI.
public static AppendLinesAsync ( string absolutePath, IEnumerable lines ) : System.Threading.Tasks.Task
absolutePath string The path or URI of the file that the lines are appended to.
lines IEnumerable The list of text strings to append as lines.
리턴 System.Threading.Tasks.Task

AppendLinesAsync() 공개 정적인 메소드

Appends lines of text to the file at the specified path or URI using the specified character encoding.
public static AppendLinesAsync ( string absolutePath, IEnumerable lines, UnicodeEncoding encoding ) : System.Threading.Tasks.Task
absolutePath string The path or URI of 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.
리턴 System.Threading.Tasks.Task

AppendTextAsync() 공개 정적인 메소드

Appends text to the file at the specified path or URI.
public static AppendTextAsync ( string absolutePath, string contents ) : System.Threading.Tasks.Task
absolutePath string The path of the file that the text is appended to.
contents string The text to append.
리턴 System.Threading.Tasks.Task

AppendTextAsync() 공개 정적인 메소드

Appends text to the file at the specified path or URI using the specified character encoding.
public static AppendTextAsync ( string absolutePath, string contents, UnicodeEncoding encoding ) : System.Threading.Tasks.Task
absolutePath string The path of the file that the text is appended to.
contents string The text to append.
encoding UnicodeEncoding The character encoding of the file.
리턴 System.Threading.Tasks.Task

ReadLinesAsync() 공개 정적인 메소드

Reads the contents of the file at the specified path or URI and returns lines of text.
public static ReadLinesAsync ( string absolutePath ) : Task>
absolutePath string The path of the file to read.
리턴 Task>

ReadLinesAsync() 공개 정적인 메소드

Reads the contents of the file at the specified path or URI using the specified character encoding and returns lines of text.
public static ReadLinesAsync ( string absolutePath, UnicodeEncoding encoding ) : Task>
absolutePath string The path of the file to read.
encoding UnicodeEncoding The character encoding of the file.
리턴 Task>

ReadTextAsync() 공개 정적인 메소드

Reads the contents of the file at the specified path or URI and returns text.
public static ReadTextAsync ( string absolutePath ) : Task
absolutePath string The path of the file to read.
리턴 Task

ReadTextAsync() 공개 정적인 메소드

Reads the contents of the file at the specified path or URI using the specified character encoding and returns text.
public static ReadTextAsync ( string absolutePath, UnicodeEncoding encoding ) : Task
absolutePath string The path of the file to read.
encoding UnicodeEncoding The character encoding of the file.
리턴 Task

WriteLinesAsync() 공개 정적인 메소드

Writes lines of text to the file at the specified path or URI.
public static WriteLinesAsync ( string absolutePath, IEnumerable lines ) : System.Threading.Tasks.Task
absolutePath string The path of the file that the lines are written to.
lines IEnumerable The list of text strings to append as lines.
리턴 System.Threading.Tasks.Task

WriteLinesAsync() 공개 정적인 메소드

Writes lines of text to the file at the specified path or URI using the specified character encoding.
public static WriteLinesAsync ( string absolutePath, IEnumerable lines, UnicodeEncoding encoding ) : System.Threading.Tasks.Task
absolutePath string The path of 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.
리턴 System.Threading.Tasks.Task

WriteTextAsync() 공개 정적인 메소드

Writes text to the file at the specified path or URI.
public static WriteTextAsync ( string absolutePath, string contents ) : System.Threading.Tasks.Task
absolutePath string The path of the file that the text is written to.
contents string The text to write.
리턴 System.Threading.Tasks.Task

WriteTextAsync() 공개 정적인 메소드

Writes text to the file at the specified path or URI using the specified character encoding.
public static WriteTextAsync ( string absolutePath, string contents, UnicodeEncoding encoding ) : System.Threading.Tasks.Task
absolutePath string The path of the file that the text is written to.
contents string The text to write.
encoding UnicodeEncoding The character encoding of the file.
리턴 System.Threading.Tasks.Task