@spiceErrorCheck<EOL>def rdtext(file, lenout=_default_len_out):  
file = stypes.stringToCharP(file)<EOL>line = stypes.stringToCharP(lenout)<EOL>lenout = ctypes.c_int(lenout)<EOL>eof = ctypes.c_int()<EOL>libspice.rdtext_c(file, lenout, line, ctypes.byref(eof))<EOL>return stypes.toPythonString(line), bool(eof.value)<EOL>
Read the next line of text from a text file.

http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/rdtext_c.html

:param file: Name of text file.
:type file: str
:param lenout: Available room in output line.
:type lenout: int
:return: Next line from the text file, End-of-file indicator
:rtype: tuple