Problem to get message


hi,
not know why still message written file, using such codes

                if (!directory.exists(@"c://ab_position_list//p03rpr-dp03r_0722.txt"))                  {                      sw.writeline("file 'p03rpr-dp03r_0722.txt' not exist!");                      return;                  }                  ...



while file exist within 

c:\ab_position_list

many & best regards, hua min


try using file.exists instead of directory.exists.


Visual Studio Languages  ,  .NET Framework  >  Visual C#



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

How to fix error Msg 1801, Level 16, State 3, Line 1

How to Share webservice object to all user