|
-
Feb 25th, 2009, 06:10 PM
#11
Re: Streamwriter creates file, but is 0 bytes
Also thought I'd add that you can use:
My.Computer.FileSystem.WriteAllText("FILENAME", Text, False)
Which will be less code than using streamwriter. Just create a string variable to hold the random numbers and then replace Text with the variables name. False is for whether or not you want to append the text to the file (add) or just replace the text already in the file. False will replace the text already in the file.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|