Are you trying to write or read only files?
To read files you can add Application.StartupPath to your names.
For internal settings files to be read and written, use Application.UserAppDataPath .
For custom documents, use Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal), Application.ProductName)
source share