Ejemplo n.º 1
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);
            }
        }
Ejemplo n.º 2
0
        public static async Task <string> Read(string filePath)
        {
            using (var reader = StreamReaderHelper.New(filePath))
            {
                var output = await reader.ReadToEndAsync();

                return(output);
            }
        }
Ejemplo n.º 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);
            }
        }