bugfix for not set '\0' at the end of the string in function `file_read`