Similarities between files and arrays

  What are the similarities between files and arrays? What are the differences between files and arrays?