Facebook
From 44, 5 Years ago, written in C#.
This paste is a reply to Re: chuj from walsienacyce - view diff
Embed
Download Paste or View Raw
Hits: 337
  1.  static void Main(string[] args)
  2.         {
  3.             string filePath = @"C:\Users\s0163726\source\repos\IO_lab03\IO_lab03\pliczek.txt";
  4.             FileStream fs = new FileStream(filePath, FileMode.Open);
  5.             byte[] data = new byte[1024];
  6.             var ar = fs.BeginRead(data, 0, 1024, null, new { Data = data, Stream = fs });
  7.             fs.EndRead(ar);
  8.             Console.WriteLine(ASCIIEncoding.ASCII.GetString(data).Substring(0, 1024));
  9.  
  10.             for (int i = 0; i < 100000; i++)
  11.                 for (int j = 0; j < 100000; j++)
  12.                     temp = i * j;
  13.         }

Replies to Re: Re: chuj rss

Title Name Language When
Re: Re: Re: chuj chuj2 csharp 5 Years ago.
captcha