[[ RefactorSyntax ]] Fixed issues while reading from a file - reading 0 read everything, reading binary never stopped for the condition given