Newbie Spellweaver
- Joined
- Aug 19, 2019
- Messages
- 6
- Reaction score
- 1
hello ! doanlephuvinh, care to watch this video :You must be registered to see linksthis will redirect you to the video tut series.
Can you help me a bit more. I want to save the file I have downloaded to current drive. I don't want to save file like the code belowWelcome buddy, just a tip : lambda + LINQ c# .. will be good for a start Goodluck.
Can you help me a bit more. I want to save the file I have downloaded to current drive. I don't want to save file like the code below
File.WriteAllText("D:\\55_SEPA_30-04-2017.xml", strXMLGenerate); --- not like that
Like I put my app in a folder in D drive, and then , I want to save files right that folder. How can I do that with code. Do you have any tips for me to do that?
string root = @"D:\Temp"; <--- the folder name
if (!Directory.Exists(root)) {Directory.CreateDirectory(root); }
//else if Exists saves the files of you're app on that directory.
File.WriteAllText(root + "\\"+Filename+".xml", strXMLGenerate);