C# 클래스 WinRTXamlToolkit.IO.Extensions.StringIOExtensions

Extensions for simple writing and reading of strings to/from files.
Note that these were created before FileIO class existed in WinRT, but they still serve a purpose.
파일 보기 프로젝트 열기: xyzzer/WinRTXamlToolkit

공개 메소드들

메소드 설명
LoadAsync ( string fileName, StorageFolder folder = null ) : Task

Reads a string from a text file.

SaveAsync ( this text, string fileName, StorageFolder folder = null, CreationCollisionOption options = CreationCollisionOption.ReplaceExisting ) : System.Threading.Tasks.Task

Writes a string to a text file.

메소드 상세

LoadAsync() 공개 정적인 메소드

Reads a string from a text file.
public static LoadAsync ( string fileName, StorageFolder folder = null ) : Task
fileName string Name of the file.
folder Windows.Storage.StorageFolder The folder.
리턴 Task

SaveAsync() 공개 정적인 메소드

Writes a string to a text file.
public static SaveAsync ( this text, string fileName, StorageFolder folder = null, CreationCollisionOption options = CreationCollisionOption.ReplaceExisting ) : System.Threading.Tasks.Task
text this The text to write.
fileName string Name of the file.
folder Windows.Storage.StorageFolder The folder.
options CreationCollisionOption /// The enum value that determines how responds if the fileName is the same /// as the name of an existing file in the current folder. Defaults to ReplaceExisting. ///
리턴 System.Threading.Tasks.Task