Wednesday, 15 May 2019

VB.Net | Sample program to create and write into the text file

'Program to write into the text file
'Program to create and write into the text file


Public Class Form1

  Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click

        Dim objwriter As New System.IO.StreamWriter("C:\Users\Desktop\text1.txt")
        objwriter.WriteLine("writetest line")
        objwriter.Close()

    End Sub
End Class



No comments:

Post a Comment

VBScript: How to use Dictionary in VBScript | VBScript objects

=>To declare and create object of a vbscript dictionary: Dim objDictionary Set objDictionary = CreateObject("Scripting.Dictionar...