Hi again! I need some code on how to create a new .txt file in visual basic. Any suggestions would be great!
Hi again! I need some code on how to create a new .txt file in visual basic. Any suggestions would be great!
Link to MSDN File class.
In truth, a mature man who uses hair-oil, unless medicinally , that man has probably got a quoggy spot in him somewhere. As a general rule, he can't amount to much in his totality. (Melville: Moby Dick)
Here is an example of how to use the File class:-
vbnet Code:
' Public Sub CreateTextFile() Dim txtFile As String = "C:\MyTextFile.txt" End Sub
Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | Create Sortable BindingList(not mine) | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading
C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter
There's just no reason to use garbage like InputBox. -jmcilhinney