What it does? : It shall make 1-15000 in a text file also
1e
next
2e
every number with a e
1e
2e
3e
and so~
please help me
Originally Posted by Slirpa
Hey guys.
today i wanted to make a program.
What it does? : It shall make 1-15000 in a text file also
1e
next
2e
every number with a e
1e
2e
3e
and so~
please help me
Code:
Dim File As String = "MyFile.txt"
Dim Temp As New System.Text.StringBuilder
For i As Integer = 1 To 15000
Temp.AppendLine(i & "e")
Next
IO.File.WriteAllText(File, Temp.ToString())
May u can send me the whoole project? please?
so that i only need to press a buton?
Originally Posted by Slirpa
May u can send me the whoole project? please?
so that i only need to press a buton?
No, I will not. If you don't know how to run the above code, learn the basics.
Originally Posted by Hassan
No, I will not. If you don't know how to run the above code, learn the basics.
he doesnt know anything about vb
where i need to put the code in?
Originally Posted by Slirpa
where i need to put the code in?
It depends on how you want the code to be executed. If you want to run the code when the application starts then double click your form. This will open the Form's load event. You can then put the above code there. If you want to run the code when you press a button then drag a button to your form. Double click it. The click event code will open. Paste the above code there. Run the application and press the button to execute the code.
and where i need to make the txt file?
Code:
Dim File As String = "MyFile.txt"
This was the first line of the code I provided above. This means that the text file will be stored in the same folder as your executable file (Bin/Debug).