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 (string , FileMode , FileAccess , FileShare );
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);
}
}