Blizzardo1 icon

random uBoat xD

Blizzardo1 | PRO | 06/18/13 02:29:40 AM UTC | 0 ⭐ | 674 👁️ | Never ⏰ | []
C# |

1.2 KB

|

None

|

0 👍

/

0 👎

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

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎