static void Main(string[] args) { Console.WriteLine("file path"); string path = Console.ReadLine().Trim('"'); byte[] data = File.ReadAllBytes(path); string encode = UUEncoding.ToUUEncodingString(data, 0, data.Length, true, 80); File.WriteAllText(path + ".uue.txt", encode); }
public void Test1() { var emptyEncoding = UUEncoding.ToUUEncodingString(new byte[0], 0, 0, false); Assert.Equal(string.Empty, emptyEncoding); }