maj buffer read file