Re: Reading from text file

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fredrik Lundh

    Re: Reading from text file

    A. Joseph wrote:
    I want to read from text file, 25 lines each time i press enter key,
    just like the python documentation.
    you can use pydoc's pager from your program:

    import pydoc

    text = open(filename). read()
    pydoc.pager(tex t)

    </F>

Working...