File: common\AssemblyResolution\Microsoft.Extensions.DependencyModel\IFile.cs
Web Access
Project: src\src\Microsoft.DotNet.XUnitConsoleRunner\src\Microsoft.DotNet.XUnitConsoleRunner.csproj (xunit.console)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using System.IO;
 
namespace Internal.Microsoft.Extensions.DependencyModel
{
    internal interface IFile
    {
        bool Exists(string path);
 
        string ReadAllText(string path);
 
        Stream OpenRead(string path);
 
        Stream OpenFile(
            string path,
            FileMode fileMode,
            FileAccess fileAccess,
            FileShare fileShare,
            int bufferSize,
            FileOptions fileOptions);
 
        void CreateEmptyFile(string path);
    }
}