A basic I/O sample for iPhone