I have written to a text file on my local drive. now i want to write to a file on the network . eg. P:/ which is mapped to another server.
How do i write to the file there?
Thanks.
Code:
Dim FileName As String = Server.MapPath("p:\orderentry\orderno.txt")
Dim objStreamWriter As StreamWriter
objStreamWriter = File.CreateText(FileName)
objStreamWriter.WriteLine(intOrderID & "," & DateTime.Now.ToString)
objStreamWriter.Close()
How do i write to the file there?
Thanks.
Code:
Dim FileName As String = Server.MapPath("p:\orderentry\orderno.txt")
Dim objStreamWriter As StreamWriter
objStreamWriter = File.CreateText(FileName)
objStreamWriter.WriteLine(intOrderID & "," & DateTime.Now.ToString)
objStreamWriter.Close()