I have the following vb.net 2005 script for listing files in a directory.
Private Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
files1 = System.IO.Directory.GetFiles(txtDirectory.Text)
Dim sw As New System.IO.StreamWriter(txtFileName.Text)
It works find , but how to modify it so that I can get the file size to appear next to the filename on the output like the following:
I think a "tab" between the filename and the filesize would be ok.