SyntaxFix
Write A Post
Hire A Developer
Questions
If your application is a web service, Directory.CurrentDirectory doesn't work.
Directory.CurrentDirectory
Use System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "yourFileName.txt")) instead.
System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "yourFileName.txt"))