fread method for safefid