I put the Notepad in Debug but it doesn\'t work Text Reader tr File-open Text e
ID: 3829568 • Letter: I
Question
I put the Notepad in Debug but it doesn't work Text Reader tr File-open Text e D: City tot )a String strLine //or use stringti arrColumns null a, FileNotFoundException was unhandled while (strLine tr-ReadLine null) Could not find file D Citytt'. arrcolumns strLine Split( lt"); cbocities. Items. Add (arrColumnste)); Troubleshooting tips: Verify that the file easts in the pecified locaton distance count Int32.Parse(arrcolunnst When using relative paths make sure the cument directory is comect tr Close(); Get general help for this exception Search for more Help Online Actions: Detail Copy ception detal to the clipboardExplanation / Answer
instead of "D:City.txt" Please try "D:\City.txt"..
As is escape character and it has special meaning .. to represent usual '' character, you must append one more '' character.