How to convert XML data file to String

Vishalbedre
Posted by Vishalbedre under C# category on | Points: 40 | Views : 983
string path = @"C:\Users\vishalb\Desktop\Untitled4.xml";

string content = File.ReadAllText(path);
Console.WriteLine(content);
Console.ReadLine();

Comments or Responses

Login to post response