Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using (var sw2 = new StreamWriter(xmlFile, false, Encoding.UTF8)) // здесь можно оставить false, т. к. пишем все строчки за раз
- {
- foreach (DataRecord record in records)
- {
- XElement category = new XElement("Folder", ...);
- sw2.WriteLine(category);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement