ASP TextStream.Close Method
Last Updated :
03 Mar, 2021
The ASP TextStream.Close Method is a predefined method of the TextStream Object which is used to close an opened text file.
Syntax:
TextStreamObject.Close
Example: Below code illustrates the ASP close Method.
ASP
<%
dim gfg,f
set gfg=Server.CreateObject( "Scripting.FileSystemObject" )
set f=gfg.CreateTextFile( "e:\Geeks.txt" ,true)
f.WriteLine( "Hello Geeks" )
f.Close
Response.write( "File is closed" )
set f=nothing
set gfg=nothing
%>
|
Output:
File is closed
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...