Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (24 sloc) 0.898 kB
//-----------------------------------------------------------------------
// <copyright file="FileUtils.cs" company="Akvelon">
// Copyright (c) Akvelon. All rights reserved.
// </copyright>
//----------------------------------------------------------------------
using System;
using System.IO.IsolatedStorage;
using System.IO;
namespace Support
{
public static class FileUtils
{
public static string ReadFileContent(string path)
{
IsolatedStorageFile myIsolatedStorage = IsolatedStorageFile.GetUserStoreForApplication();
IsolatedStorageFileStream fileStream = myIsolatedStorage.OpenFile(path, FileMode.Open, FileAccess.Read);
using (System.IO.StreamReader reader = new System.IO.StreamReader(fileStream))
{
return reader.ReadToEnd();
}
return string.Empty;
}
}
}
Jump to Line
Something went wrong with that request. Please try again.