Dim fi() As FileInfo = New DirectoryInfo(Server.MapPath("~/images/")).GetFiles
Dim sb As New StringBuilder
sb.AppendLine("")
sb.AppendLine("")
sb.AppendLine("")
For Each File In fi
sb.AppendLine("")
Next
sb.AppendLine("")
sb.AppendLine("")
Dim w As System.IO.StreamWriter = New System.IO.StreamWriter(System.IO.File.Open(Server.MapPath("~/sss.xml"), IO.FileMode.Create))
w.Write(sb.ToString)
w.Close()
|