public static async Task <string> Read(string filePath) { using (var reader = StreamReaderHelper.New(filePath)) { var output = await reader.ReadToEndAsync(); return(output); } }
public static async Task <string[]> ReadAllLines(string filePath, string lineSeparator) { using (var streamReader = StreamReaderHelper.New(filePath)) { var output = await StreamReaderHelper.ReadAllLines(streamReader, lineSeparator); return(output); } }
public static async Task <List <string> > ReadAllLinesOneByOne(string filePath) { using (var streamReader = StreamReaderHelper.New(filePath)) { var output = await StreamReaderHelper.ReadAllLinesOneByOne(streamReader); return(output); } }
public static Task <string[]> ReadAllLines(string filePath) { return(StreamReaderHelper.ReadAllLines(filePath)); }
public static Task <string[]> ReadAllLines(string filePath) { return(StreamReaderHelper.ReadAllLines(filePath, Strings.NewLineForEnvironment)); }