Hi shady, this is how you do it.. while True: try: x = input() except EOFError: break
On Fri, Nov 18, 2011 at 4:26 PM, shady <sinv...@gmail.com> wrote: > Can anyone tell how to read till the end of file in python language ? > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- *Krishna Bharadwaj* *www.krishnabharadwaj.info | @krishbharadwaj<http://www.twitter.com/krishbharadwaj> * -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.