Created
February 14, 2017 18:55
-
-
Save pedroinfo/37d83fc0f42d131e1f1e14dc93998c56 to your computer and use it in GitHub Desktop.
Convert txt files to UTF8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var files = Directory.EnumerateFiles(txtDiretorio.Text, "*.txt", option); | |
foreach (var file in files) | |
{ | |
var content = File.ReadAllLines(file); | |
File.WriteAllLines(file, content, Encoding.UTF8); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment