Question

Doers anyone know of an IFilter wrapper class that implements ReadLine().

I'm currently using this Code Project IFilter Wrapper which is excellent and inherits TextReader but it doesn't contain an implementation for ReadLine(). Having had a look at the Read() method it doesn't look easy or something that can be done quickly.

Is there a quick and easy way to implement this that I'm just missing ?

Was it helpful?

Solution

I had same problem as you, so I had to create my own implementation (basically checked available implementations and resources for filters, and then hammered something together).

It is also implemented as TextReader, overrides Read method, so ReadLine works automatically.

Code can be found here: https://github.com/MarianPolacek/MP.FilterReader

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top