Quote:Original post by ForDQuote:Original post by Oluseyi
Show us more code. Like the buffer you read into and what you do with it, and whether you also try to write to the file, etc. Show us your whole program.
That is all of my code. That's literally all I'm trying to do, open file and read it. Nothing more.
If it doesn't appear to be "hanging", then it's not a problem with blocking.
I take it you are doing this at the interactive prompt (so that you can see the value of the expression 'x.read()')?
What kind of file is it? What are you expecting to see, and why? What does it look like if you open it in a text editor (such as Notepad)?