Marshall

Marshall

  • NA
  • 16
  • 26.5k

File paths???

Apr 24 2007 3:32 PM
Hello all:

I'm developing a C# smart device app in VS2005 for PPC2003 and above.
My program is opening a ini file at the begining which is in the same dir. Problem is that the stream code below thinks the file should be in the root "\" directory. I've tried the @".\" and the ".\\" options to try and specify the same dir as the EXE but still get a file not found exception??? When I put the file in the root "\" directory then it opens the file???

StreamReader sr = new StreamReader("temp.ini", Encoding.ASCII);

Am I missing something here?

Thank you

Marshall

Answers (6)