File input and output testing.