| | |
If stdin is empty?
Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Jun 2007
Posts: 23
Reputation:
Solved Threads: 1
Hi there!
How do I check if stdin is empty? This is how I write in the terminal to call my program:
/flaerpen
How do I check if stdin is empty? This is how I write in the terminal to call my program:
Python Syntax (Toggle Plain Text)
>> cat file.txt | python script.py
/flaerpen
![]() |
Similar Threads
- hide link if variable is empty (JSP)
- total newb - "passing arg 2 of `strcpy' makes pointer from integer without a cast" (C++)
- I am a girl doing my 1st simple program (C)
- Why does my array still empty (C++)
- stdin.readlin() doesn't want to work ? (Java)
- Mortgage Program help (Java)
Other Threads in the Python Forum
- Previous Thread: Data View
- Next Thread: Python Certifications
| Thread Tools | Search this Thread |
accessdenied advanced aliased argv beginner bits calling casino change command convert count csv cturtle cursor def dictionary digital dynamic dynamically enter event examples external file float format frange function google gui hints homework i/o iframe import info input jaunty java keyboard lapse line linux list lists loop microphone mouse multiple newb number numbers obexftp output parameters parsing path port prime programming projects py py2exe pygame pygtk pyopengl python random recursion return scrolledtext signal skinning sprite stderr string strings subprocess table tennis terminal text thread threading time tkinter tlapse tuple tutorial ubuntu unicode urllib urllib2 variable voip web-scrape whileloop windows wxpython






