Hi guys, using asp.Net, wat are the codes to create a txt file in the server and then how to input a string for example "123" into the txt file?? Thanks
Printable View
Hi guys, using asp.Net, wat are the codes to create a txt file in the server and then how to input a string for example "123" into the txt file?? Thanks
assuming you have write permissions on the directory you're trying to write to, here is one of about a million different ways to do that:
Code:Dim oStreamWriter As New System.IO.StreamWriter("c:\\test.txt", False)
oStreamWriter.Write("123")
oStreamWriter.Close()