0

I'm wondering if there's a way to open standard I/O as a stream, so I can write and read character by character. Something like

handle = open(stdio)

Any ideas?

2
Contributors
1
Reply
2
Views
9 Years
Discussion Span
Last Post by jlm699
1

sys.stdin is an "always open" file handle to the stdin and likewise sys.stdout. To use them, import sys.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.