Skip to content

Instantly share code, notes, and snippets.

View disklosr's full-sized avatar
✔️
Getting stuff done!

Anas Mazioudi disklosr

✔️
Getting stuff done!
View GitHub Profile
var filestream = new FileStream(textFilePath,
FileMode.Open,
FileAccess.Read,
FileShare.ReadWrite);
var file = new StreamReader(filestream, Encoding.UTF8, true, 128);
while ((lineOfText = file.ReadLine()) != null)
{
//do something with the lineOfText
}
@disklosr
disklosr / hello.cs
Last active November 11, 2015 15:05
using System;
#pragma warning disable 414, 3021
public class Program
{
/// <summary>The entry point to the program.</summary>
public static int Main(string[] args)
{
Console.WriteLine("Hello, World!");