SyntaxFix
Write A Post
Hire A Developer
Questions
using (var file = File.Create("pricequote.txt")) { ........... } using (var file = File.OpenRead("pricequote.txt")) { .......... }
Simple, easy and also disposes/cleans up the object once you are done with it.