stefonalfaro
Member
- Joined
- Dec 3, 2007
- Messages
- 16
- Programming Experience
- Beginner
What im trying to do is to create 200 text files in my documens with each file having a different name...
text1.txt
text2.txt
text3.txt
text4.txt
text5.txt .......
So here is my code, if some one could correct it I would greatly appreciate it.
text1.txt
text2.txt
text3.txt
text4.txt
text5.txt .......
So here is my code, if some one could correct it I would greatly appreciate it.
VB.NET:
Dim amount As Integer = "1"
Dim FILE_NAME As String = "C:\Users\Stefon\Documents\test" & amount & ".txt"
For amount = 1 To 200
Dim objWriter As New System.IO.StreamWriter(FILE_NAME, True)
objWriter.Write("HI")
objWriter.Close()
Next amount