I'm probably missing something **really** obvious, but how are you supposed to 
handle a scenario where you read a file from stdin and then need to prompt for 
a password after doing so.

e.g. something like this:
    
    
    cat sometextfile.txt | myapp -
    Password: blahblah
    

readAll(stdin) works fine to grab the content on the first line, but 
readPasswordFromStdin returns nothing after that.

I wondered if I have to close and re-open stdin, but that doesn't look like it 
works. Any clues to the voodoo required here?

Reply via email to