iostream to i-paded