Horje
load information with txt file to uwp c# Code Example
load information with txt file to uwp c#
private async Task AddTextToFile(String textToSave)
{
    var appFolder = Windows.Storage.ApplicationData.Current.LocalFolder;
    var file = await appFolder.CreateFileAsync("exposure.txt", 
        Windows.Storage.CreationCollisionOption.OpenIfExists);
    await Windows.Storage.FileIO.AppendTextAsync(file, textToSave + Environment.NewLine);
    // Look in Output Window of Visual Studio for path to file
    System.Diagnostics.Debug.WriteLine(String.Format("File is located at {0}", file.Path.ToString()));
}

private async void Button_Click(object sender, RoutedEventArgs e)
{
    await AddTextToFile(String.Format("MinimumExposure {0}", DateTime.Now.Millisecond.ToString()));
}




Csharp

Related
deserialize object to dictionary c# Code Example deserialize object to dictionary c# Code Example
how to resize a panel unity Code Example how to resize a panel unity Code Example
turtle graphics face in direction Code Example turtle graphics face in direction Code Example
new material unity Code Example new material unity Code Example
c# even or odd Code Example c# even or odd Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10