Common Scala I/O operations