File handling examples