Read this page and be sure to complete the simulations for each type of file management.
Read these slides.