I just tried. It works. Sorry for my mistake. Thanks. > >Hi > >> hSetBuffering stdout NoBuffering > >Try hSetBuffering stdin NoBuffering, since its stdin you are reading from. > >Thanks > >Neil >