Hey guys
im newcomer in compact framework and i want to develop a program for my Smartphone(Sp3). im using vs.net 2005 and c#. but i stopped with stupid problem in my strating
how can i open and read a text file? im very confuse
i used this command:
string strAppPath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly(
.GetName().CodeBase);
string mypath = strAppPath + "\\Dictionary.txt";
System.IO.StreamReader str = new System.IO.StreamReader(mypath);
and Text.txt is available in my project explorer in vs. but i receive then error:
FileNotFoundException
any idea?
Thanks
im newcomer in compact framework and i want to develop a program for my Smartphone(Sp3). im using vs.net 2005 and c#. but i stopped with stupid problem in my strating
i used this command:
string strAppPath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly(
.GetName().CodeBase);
string mypath = strAppPath + "\\Dictionary.txt";
System.IO.StreamReader str = new System.IO.StreamReader(mypath);
and Text.txt is available in my project explorer in vs. but i receive then error:
FileNotFoundException
any idea?
Thanks
Edited by ehsantl, 29 June 2006 - 06:53 PM.







Sign In
Create Account

Back to top










