using BITKit; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BITKit.IO { public interface IStorageFile { string GetPath(); string GetName(); long GetSize(); DateTime GetLastUpdated(); string GetFileType(); /// /// Creates a stream for reading from the file. /// Stream OpenRead(); Task OpenReadAsync(); /// /// Creates a stream for writing to the file. /// Stream OpenWrite(); Task OpenWriteAsync(); /// /// Creates a stream for writing to the file, and truncates the existing content. /// Stream CreateFile(); Task CreateFileAsync(); /// /// Get string from StreamReader /// string GetText(); Task GetTextAsync(); } }