Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

random file generation

View file.cs
1 2 3 4
FileStream sw = new FileStream("file.txt", FileMode.Create);
sw.Seek(1024, SeekOrigin.Begin);
sw.WriteByte(0);
sw.Close();
pysiak commented
using System.IO;
public class Example
{
    public static void Main()
    {
        FileStream sw = new FileStream("file.txt", FileMode.Create);
        sw.Seek(1024, SeekOrigin.Begin);
        sw.WriteByte(0);
        sw.Close();
        return;
    }
}

Hi, just following from stackoverlow...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.