Hi..
I am trying to create a xml file and write some information into the xml file but when i open the xml file i don't have any information.
Even if i try to create a txt file and do the same thing but it is still the same.
i am not sure why..
can someone help me...

VB Code:
  1. Dim path As String = "School"
  2.         Dim target As String = "School/latcomers.txt"
  3.  
  4.         Try
  5.             If Directory.Exists(path) = False Then
  6.                 Directory.CreateDirectory(path)
  7.                 Dim sw As StreamWriter = File.CreateText(target)
  8.                 sw.Write(("<info class=""1A"" indexno=""01"" date=""10/10/2005"" time=""10:18:00""/>"))
  9.  
  10.             ElseIf Directory.Exists(path) = True Then
  11.                 Dim sw As StreamWriter = File.CreateText(target)
  12.                 sw.Write("<info class=""1A"" indexno=""01"" date=""10/10/2005"" time=""10:18:00""/>")
  13.             End If
  14.  
  15.         Catch ex As Exception
  16.             MsgBox("unable to create")
  17.         End Try
Thanxs......