Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. Create a file called c:\crap.txt of exactly one megabyte in size filled with the following data.
  2.  
  3. 1234567890123456789012345... etc
  4.  
  5. Hints
  6. File.CreateText("") is useful for creating new files on disk, it returns a StreamWriter object
  7. The StreamWriter object has a Write("") method which can be used to write a string to the stream.
  8. When you have finished with a Stream it must be closed using the Close() method.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement