Improved get file content