../../Program Files/(ApplicationName)/(i need the file here)
FileInfo MyFile = new FileInfo(@"..\..\Program Files\Beta1\ashraf.txt); MyFile.Create();
<!-- this script got from www.javascriptfreecode.com-Coded by: Krishna Eydat --> <!-- Search Google --> <center> <FORM method=GET action="http://www.google.com/search"> <TABLE bgcolor="#FFFFFF"><tr><td> <A HREF="http://www.google.com/"> <IMG SRC="http://www.google.com/logos/Logo_40wht.gif" <br></A> <INPUT TYPE=text name=q size=31 maxlength=255 value=""> <INPUT TYPE=hidden name=hl value="en"> <INPUT type=submit name=btnG VALUE="Google Search"> </td></tr></TABLE> </FORM> </center> <!-- Search Google --> <font face="Tahoma"><a target="_blank" href="http://www.javascriptfreecode.com/"><span style="font-size: 8pt; text-decoration: none">JavaScript Free Code</span></a></font>
string appPath = Path.GetDirectoryName(Application.ExecutablePath);
FileInfo file = new FileInfo("Program Files\\SmartDeviceProject1\\File.txt"); using (StreamWriter writer = file.CreateText()) { writer.WriteLine("FooBar"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)