I have a text file and i am converting it to unicode, and then want to save the content to a file. I want to save in the file in 2 formats:
- In unicode
- In English like characters (as file.doc)
UnicodeEncoding u = new UnicodeEncoding();
byte[] filebytes = u.GetBytes("C:/file.doc");
File.WriteAllBytes(@"C:/uni.doc", filebytes); // unicode
File.WriteAllBytes(@"C:/ori.doc", filebytes); // As the Original file