I\'ve been using File.ReadAllText() to open a CSV file, but every time I forget to close the file in Excel, the application throws an exception because it can\'
File.ReadAllText()
If you want to specify file sharing flags in order to open a file that's in use, you're stuck with File.Open().