// 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); } } |