I am having a hard time figuring up why this code of mine gives me an unhandled exception error where in fact it is an if statement..
If (Not System.IO.File.Exists("C:\file.txt") And System.IO.File.ReadAllText("C:\file.txt").Length <> "20") Then
MessageBox.Show("Code executed!")
Else
MessageBox.Show("Failed to execute!")
End If
Can you please tell me what have I missed?