Ejemplo n.º 1
0
        public async Task ReadToEnd()
        {
            const string fileName = "RFC2046-1.txt";
            var          reader   = new FileByteReader();
            await reader.GetReaderAsync(fileName);

            reader.Endstring = "\r\n.\r\n";
            var stream = await reader.GetMemoryStreamAsync();

            reader.Dispose(false);
        }
Ejemplo n.º 2
0
 public async Task ReadToEnd()
 {
     const string fileName = "RFC2046-1.txt";
     var reader = new FileByteReader();
     await reader.GetReaderAsync(fileName);
     reader.Endstring = "\r\n.\r\n";
     var stream = await reader.GetMemoryStreamAsync();
     reader.Dispose(false);
 }