well turned out to be a corrupted file and poorly written error code on my part. re made the file and all is well thanks all DH
tjDieHard
Posts
-
C# Cannot find file -
C# Cannot find fileI have checked all,and all is okay. If it was a permission would it error this way or would I get the access denied type error? I m lost
-
C# Cannot find fileNot read only, or hidden I meant. My mistake in words.
-
C# Cannot find fileI am writing a small Wx app and need to access a file on the HDD to fill a combobox. I am using StreamReader and ReadLine to get it into the box. I have moved the file to the root, the file has no permissions set. Each time that I run the app it errors to the catch and tells me that it cannot find the file. I have tried File.Exists( file ) and it also tells me that it is not there. I have used @"c:\nex_tex.txt" and "c:\\nex_tex.txt" with no success. If I didn't see it with my own eyes I wouldn't believe that it was there. Anyway I am new to C# and obviously am missing something. Thanks in Advance DH