getting an inputStream on a file
Erik Max Francis
max at alcyone.com
Mon Aug 19 04:13:02 CEST 2002
> Is there a way to get a stream on a file, for methods that require a
> as input when I want to use a file as the input.
What do you mean by "stream" vs. "file"? File objects have a simple
interface (.read and .write methods, etc.); an arbitrary "stream" could
implement this same interface and be usable wherever a file would be
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/ \ There is nothing so subject to the inconstancy of fortune as war.
\__/ Miguel de Cervantes
Church / http://www.alcyone.com/pyos/church/
A lambda calculus explorer in Python.
More information about the Python-list