ASP writeline command Parameter

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jc9861
    New Member
    • Nov 2015
    • 2

    ASP writeline command Parameter

    I can get the username from user's input and I need to write it to a text file. Anyone knows the

    Code:
    <%
    xName = "My name is: " + username
    
    set fs=Server.CreateObject("Scripting.FileSystemObject")
    set f=fs.CreateTextFile(NewFilePath,true)
    f.writeline(xName) ??? what's the correct parameter?
    f.Close
    set f=nothing
    set fs=nothing
    %>
    Last edited by Rabbit; Nov 12 '15, 05:11 PM. Reason: Please use [code] and [/code] tags when posting code or formatted data.
  • jc9861
    New Member
    • Nov 2015
    • 2

    #2
    Correction... it's because Foreign characters makes the error. My question would be: How to write Chinese characters into a text file?

    Thanks

    Comment

    Working...