<PackageReference Include="Relativity.Server.Import.SDK" Version="2.9.2" />

IFile

public interface IFile
Represents an abstract wrapper for the File class.
using System; using System.IO; namespace Relativity.DataExchange.Io { [CLSCompliant(false)] public interface IFile { void Copy(string sourceFileName, string destFileName); void Copy(string sourceFileName, string destFileName, bool overwrite); int CountLinesInFile(string path); FileStream Create(string path); FileStream Create(string path, bool append); FileStream Create(string path, FileMode mode, FileAccess access, FileShare share); StreamWriter CreateText(string path); void Delete(string path); bool Exists(string path); long GetFileSize(string fileName); void Move(string sourceFileName, string destFileName); string ReadAllText(string path); FileStream ReopenAndTruncate(string fileName, long length); } }