> It seems that write buffer should be flushed before select for reading.

I tried flushing with File.flush, but it didn't help.  Or should I be using 
File.fsync ?

Caleb