save string to file

/ Published in: C#
Save to your folder(s)

example is .xml to be saved under folder "data"

Copy this code and paste it in your HTML
  1. string bookResult = "xxx";
  2. string FileName = "data/" + isbn + ".xml";
  3. System.IO.File.WriteAllText(FileName, bookResult);

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.