ASP 쓰기 방법


❮ 완전한 TextStream 객체 참조

Write 메서드는 지정된 텍스트를 TextStream 파일에 씁니다.

참고: 이 방법은 각 문자열 사이에 공백이나 줄 바꿈 없이 텍스트를 TextStream 파일에 씁니다.

통사론

TextStreamObject.Write(text)

Parameter Description
text Required. The text to write to the file

예시

<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.CreateTextFile("c:\test.txt",true)
f.write("Hello World!")
f.write("How are you today?")
f.close
set f=nothing
set fs=nothing
%>

The file test.txt will look like this after executing the code above:

Hello World!How are you today?

❮ 완전한 TextStream 객체 참조