By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,162 Members | 1,066 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,162 IT Pros & Developers. It's quick & easy.

ASP writeline command Parameter

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

Expand|Select|Wrap|Line Numbers
  1. <%
  2. xName = "My name is: " + username
  4. set fs=Server.CreateObject("Scripting.FileSystemObject")
  5. set f=fs.CreateTextFile(NewFilePath,true)
  6. f.writeline(xName) ??? what's the correct parameter?
  7. f.Close
  8. set f=nothing
  9. set fs=nothing
  10. %>
Nov 12 '15 #1
Share this Question
Share on Google+
1 Reply

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

Nov 12 '15 #2

Post your reply

Sign in to post your reply or Sign up for a free account.