What are the differences between a file and a pipe?