示例#1
0
        public static async Task <string> Read(string filePath)
        {
            using (var reader = StreamReaderHelper.New(filePath))
            {
                var output = await reader.ReadToEndAsync();

                return(output);
            }
        }
示例#2
0
        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);
            }
        }
示例#3
0
        public static async Task <List <string> > ReadAllLinesOneByOne(string filePath)
        {
            using (var streamReader = StreamReaderHelper.New(filePath))
            {
                var output = await StreamReaderHelper.ReadAllLinesOneByOne(streamReader);

                return(output);
            }
        }
示例#4
0
 public static Task <string[]> ReadAllLines(string filePath)
 {
     return(StreamReaderHelper.ReadAllLines(filePath));
 }
示例#5
0
 public static Task <string[]> ReadAllLines(string filePath)
 {
     return(StreamReaderHelper.ReadAllLines(filePath, Strings.NewLineForEnvironment));
 }