[IronPython] File as TextReader

Sanghyeon Seo sanxiyn at gmail.com
Mon Dec 17 20:28:51 PST 2007


I wrote a short howto on passing Python's file-like objects to .NET
API expecting TextReader.

http://www.ironpython.info/index.php/File_as_TextReader

1. Does this look okay? It does work.

2. It would be nice if IronPython can provide conversions like these.
Another example would be Python datetime and .NET DateTime. Already
implemented example is constructing Python file from .NET Stream. What
do you think?

-- 
Seo Sanghyeon


More information about the Users mailing list