You need to send a EOF. Either pipe a file in through stdin, like:

cat somefile.txt | yourprogram
Or, if you're on Windows
type somefile.txt | yourprogram
Or, send an EOF. I believe it's...