and example using streamwriter