C#.net / WPF3 [펌] C# Best HTML Parser [원문] https://www.scrapingdog.com/blog/csharp-html-parser/ Best C# HTML 5 Parsers 28-01-2023 Data parsing is like extracting metals from a pile of garbage. When we deal with web scraping we receive a large amount of data that is completely useless for us. At this point, we use an HTML parser to extract useful data from the raw data we get from the target website while scraping it. C# Html Parser .. 2024. 3. 24. 경로의 특정 확장자 파일만 모두 삭제 public void DeleteAllExtFiles(string targetPath, string ext) { if (!System.IO.Directory.Exists(targetPath)) return; { // string targetPath = @"C:\Users\AppData\Local\Temp"; // string ext = "*.temp"; } string[] files = Directory.GetFiles(sourceDir, ext); foreach (var file in files) File.Delete(file); } 2024. 3. 13. 하위 경로 디렉토리 생성 (Batch Create Sub Directory in C#) [Use Sample] DirectoryInfo src = new DirectoryInfo(@"E:\Test\Dir1"); DirectoryInfo dest = new DirectoryInfo(@"C:\Dir2"); CopyDirectory(src, dest); static void CopyDirectory(DirectoryInfo source, DirectoryInfo destination) { if (!destination.Exists) { destination.Create(); } // Copy all files. FileInfo[] files = source.GetFiles(); foreach (FileInfo file in files) { file.CopyTo(Path.Combine(destin.. 2024. 3. 12. 이전 1 다음