示例#1
0
文件: Program.cs 项目: b11p/Uue
        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);
        }
示例#2
0
        public void Test1()
        {
            var emptyEncoding = UUEncoding.ToUUEncodingString(new byte[0], 0, 0, false);

            Assert.Equal(string.Empty, emptyEncoding);
        }