my advice is to use fgets() to read lines of input. And you can use it's return value to see if the the read was successfull or not.
http://www.cplusplus.com/ref/cstdio/fgets.html
Search found 4 matches
- Sat Feb 18, 2006 9:45 pm
- Forum: C
- Topic: Random Sentence from a File
- Replies: 2
- Views: 3816
- Tue Nov 22, 2005 8:45 pm
- Forum: Algorithms
- Topic: !!Help needed on Greedy Algorithm!!
- Replies: 2
- Views: 3435
- Fri Nov 18, 2005 1:10 pm
- Forum: Volume 109 (10900-10999)
- Topic: 10946 - You want what filled?
- Replies: 38
- Views: 24782
- Wed Nov 16, 2005 3:58 pm
- Forum: Volume 109 (10900-10999)
- Topic: 10946 - You want what filled?
- Replies: 38
- Views: 24782