Wednesday, 2 September 2020

Read text from a file in Web API

 using System.Web;


string path = Path.Combine(HttpRuntime.AppDomainAppPath, "TextFile\\Results.txt");

string dataText = File.ReadAllText(path);

No comments:

Post a Comment