Guest User

Untitled

a guest
Nov 9th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.35 KB | None | 0 0
  1. static void Main(string[] args)
  2.         {
  3.             FileStream text = new FileStream("c:\\numbers.txt", FileMode.Create);
  4.             StreamWriter writer = new StreamWriter(text);
  5.             for (int i = 0; i <= 501; i++)
  6.             {
  7.                 writer.Write(i);
  8.  
  9.                
  10.             }
  11.             writer.Close();
  12.  
  13.  
  14.  
  15.         }
Advertisement
Add Comment
Please, Sign In to add comment