Please, take the 2-minute
tour and have a quick 30-second read of our
help center - you'll get a better grasp of what this site is all about. In short,
you write
working code that actually accomplishes something, and put it up here for peer review, and then people point out stuff like
"calling reader.Close()
in a Using
block is superfluous because xyz" - and you learn to write cleaner, clearer, better, more readable, secure, performant code. One of the criteria for being on-topic, is answering "yes" to "did I write this code?" ;) —
Mat's Mug 12 secs ago