Answer Posted / jatin arora
The TextStream Object
The TextStream object is used to access the contents of text
files.
The following code creates a text file (c:\test.txt) and
then writes some text to the file (the variable f is an
instance of the TextStream object):
<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.CreateTextFile("c:\test.txt",true)
f.WriteLine("Hello World!")
f.Close
set f=nothing
set fs=nothing
%>
To create an instance of the TextStream object you can use
the CreateTextFile or OpenTextFile methods of the
FileSystemObject object, or you can use the OpenAsTextStream
method of the File object.
The TextStream object's properties and methods are described
below:
Properties
Property Description
AtEndOfLine Returns true if the file pointer is positioned
immediately before the end-of-line marker in a TextStream
file, and false if not
AtEndOfStream Returns true if the file pointer is at the
end of a TextStream file, and false if not
Column Returns the column number of the current character
position in an input stream
Line Returns the current line number in a TextStream file
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Explain the life cycle of asp page.
What is difference between aspx and ascx?
What is aspx format?
What is an asp program?
Is asp a programming language?
What is aspx used for?
how u can use asp.net for making website?
hello dear this quadir saif and im doing bca .i want hotel management project in asp.net (with backend sql).on my id (quadir2011@rediffmail.com)
How do I create an aspx file?
Define file system object object?
what is the role of attributes properties in asp field object
What are private assemblies?
sir,please send me the NIC exam questions
Define unmanaged code?
What is active server object model?