Fixed bug in Linux read implementation
Added Windows read implementation