public static IObservable <Unit> SaveAsyncAllLinesAsObservable(string path, string[] contents) { return(Observable.Start(() => File.WriteAllLines(Utility.GetFullPath(path), contents))); }
public static IObservable <string[]> LoadAsyncAllLinesAsObservable(string path) { return(Observable.Start(() => File.ReadAllLines(Utility.GetFullPath(path)))); }
public static IObservable <Unit> SaveAsyncAllBytesAsObservable(string path, byte[] bytes) { return(Observable.Start(() => File.WriteAllBytes(Utility.GetFullPath(path), bytes))); }