How to load file by id (fid) in Drupal 8.

<?php
  $file
= \Drupal\file\Entity\File::load($fid);
?>
Tags