Skip to content

Instantly share code, notes, and snippets.

@wingedpanther
Created January 16, 2016 11:16
Show Gist options
  • Save wingedpanther/50f75d5faa5eb2a63e7d to your computer and use it in GitHub Desktop.
Save wingedpanther/50f75d5faa5eb2a63e7d to your computer and use it in GitHub Desktop.
Dim obj As Object = If(System.IO.File.Exists("C:\file.txt"), System.IO.File.ReadAllText("C:\file.txt").Length <> 20, False)
If obj Then
MessageBox.Show("Code executed!")
Else
MessageBox.Show("Failed to execute!")
End If
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment