Sample code demonstrating IOException.