Problem of creating text file and write in that text file.

  • Thread starter Thread starter Hany Metry
  • Start date Start date
H

Hany Metry

Guest
Hi,

The following code does not create the text file and I don't know why.

Dim file As System.IO.StreamWriter
If My.Settings.FileName1 = "" Then
file = My.Computer.FileSystem.OpenTextFileWriter("D:\Untitled.txt", True)
Else
file = My.Computer.FileSystem.OpenTextFileWriter("D:\" & My.Settings.FileName1 & ".txt", True)
End If
file.WriteLine(TV)
file.WriteLine(Str2007)
file.Close()

Please advice

Kind Regards,





Hany Metry

Continue reading...
 
Back
Top