2016-02-10 20:13:56 -08:00
|
|
|
|
// Copyright (c) .NET Foundation and contributors. All rights reserved.
|
|
|
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
|
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.Extensions.EnvironmentAbstractions
|
|
|
|
|
{
|
|
|
|
|
internal class FileWrapper: IFile
|
|
|
|
|
{
|
|
|
|
|
public bool Exists(string path)
|
|
|
|
|
{
|
|
|
|
|
return File.Exists(path);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string ReadAllText(string path)
|
|
|
|
|
{
|
|
|
|
|
return File.ReadAllText(path);
|
|
|
|
|
}
|
2016-03-10 10:12:43 -08:00
|
|
|
|
|
|
|
|
|
public Stream OpenRead(string path)
|
|
|
|
|
{
|
|
|
|
|
return File.OpenRead(path);
|
|
|
|
|
}
|
2016-02-10 20:13:56 -08:00
|
|
|
|
}
|
|
|
|
|
}
|