With the absolute path stated below, how can I convert it to be a relative path?
System.IO.FileInfo path = new System.IO.FileInfo(@"C:\Users\username\Documents\GitHub\MassSpecStudio\MassSpecStudio 2.0\source\MassSpecStudio\Core\app.config");
My initial attempt was
System.IO.FileInfo path = new System.IO.FileInfo(@"..\..\..\..\..\MassSpecStudio\MassSpecStudio 2.0\source\MassSpecStudio\Core\app.config");
but this path cannot be found so I guess my attempt is incorrect.