c# - Get path to "linked file" added to a folder in a project of executable app? -


i have utility win forms app has folder in project hold text file modified. text file located elsewhere in source , added folder linked file, keep synced project's needs.

the app needs locate file, open it, append line , save back.

how can path linked file use file.appendalltext() method add data?

var path = httpcontext.current.server.mappath("~/somefolder/somefile.txt"); 

or var path = server.mappath("~/somefolder/somefile.txt"); //if inside web page or controller in mvc

considering file there inside project. "~/" root folder of project.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -