I believe this is a straight forward question, hope I wont get fumed. Writing a code to find the file named text.txt in C drive
If IO.File.Exists("C:\text.txt") Then
MessageBox.Show("Found text file")
Else
MessageBox.Show("Not Found")
End If
"C:\text.txt" cannot be found when located in a subfolder. What syntax should be used for this?
I have overspent my time on finding the solution, hence asking an easy question over here.
Thanks!