improve the file content reading