File descriptor's reading function. Nov2014