Results 1 to 2 of 2

Thread: Create a file in server

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2002
    Posts
    13

    Create a file in server

    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

  2. #2
    pvb
    Guest
    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()

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width