Local folder

Closed
abo samra - Jul 8, 2009 at 12:29 AM
Hello,i want to deal with a text file (To write and read from it) in the same folder of the project but i have to write the full path to determine the partitiion then the folder then the file like tht code

System.IO.StreamReader objreader1;
objreader1 = new System.IO.StreamReader("D:\\windowsapplication1\\text1.txt");
string chang1 = objreader1.ReadToEnd();
objreader1.Close();

if i copied the pro in any partition the link won't work

i wanna some help