First up, StreamReaders don't write. As the name suggests, they read. Also, this replacement really has nothing to do with the StreamWriter. It will just write what you tell it to. If you have a starting string and you want to write something different then you must process the string first to get another string, which you can then pass to the StreamWriter. If you want to replace each space with two spaces separated by a comma then that's exactly what you should do:
Thanks so much for your help. Thats exactly what I needed. Sorry I wasn't to clear but what I meant was replace the contest streamreader reads using streamwriter. You understood
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.