string fileName = "myfile.ext"; string fullPath; fullPath = Path.GetFullPath(fileName); //and I m trying to save the path to txt file. string log = fullPath; string filePath = @"C:\Users\Atrix\Desktop\log.txt"; FileStream myLog = new FileStream(filePath,FileMode.Append ,FileAccess.Write); StreamWriter sw = new StreamWriter(myLog); sw.Write(log); sw.Close(); myLog.Close();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)