ASP.NET - Este codigo ¿SIRVE PARA GRABAR EN UN TXT EN SERVER

 
Vista:

Este codigo ¿SIRVE PARA GRABAR EN UN TXT EN SERVER

Publicado por vlg (37 intervenciones) el 14/04/2004 20:44:38
Dim sr As System.IO.StreamWriter = New System.IO.StreamWriter("/mitexto.txt", True)

Dim linea As String

'Do
sr.WriteLine("prueba de grabacion en txt")

'Loop Until linea Is Nothing
sr.Close()

LO QUE ME HACE ES GRABAR EL TXT EN LA RAIZ LOCAL ¿COMO PUEDO HACER PARA QUE GRABE EN EL SERVIDOR?
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

ya lo tengo, os paso el codigo

Publicado por vlg (37 intervenciones) el 15/04/2004 21:08:40
Dim objstreamwriter As System.IO.StreamWriter
objstreamwriter = System.IO.File.AppendText(Server.MapPath("report.txt"))
objstreamwriter.WriteLine("esto es una prueba de escritura en un txt en el servidor webmatrixhosting.net")
objstreamwriter.Close()
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar