file.readalllines

detecting/preventing error/deadlock when opening/reading text file

I am reading file with text contents on it. sample dictionary.txt contents: aa abaca abroad apple Snippet A: Dim path as String = Server.MapPath("dictionary.txt"); Dim dictionary() as String = {} Try { dictionary = File.ReadAllLines(path) } Catch ex as Exception End Try Snippet B: Dim path as String = Server.Ma...

What is the difference between File.ReadAllLines() and File.ReadAllText()?

What is the difference between File.ReadAllLines() and File.ReadAllText()? Thank you very much. ...