using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace URANDOM
{
class Program
{
static void Main(string[] args)
{
string[] allLines = File.ReadAllLines(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "\\random.l");
string nLine = string.Empty;
int MAX_LENGTH = 512;
byte tB;
StreamWriter writer = new StreamWriter(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "\\random.ll");
for (int i = 0; i < MAX_LENGTH; i++)
{
foreach (char c in allLines[i])
{
tB = (byte)c;
tB = (byte)((tB ^ 32) & 0xFF >> tB * 32);
nLine += ((char)tB);
}
Console.Write("Writing Line {0} of {1} instead of {2}", i + 1, MAX_LENGTH, allLines.Length);
Console.SetCursorPosition(0, 0);
System.Threading.Thread.Sleep(1);
writer.WriteLine(nLine);
writer.Flush();
}
Console.ReadKey(true);
writer.Close();
}
}
}
Comments
0 B
|👍
/👎