explain uses of Textstream object in ASP
Answer / 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 |
what is normalisation
What is .asp in html?
How do I view an aspx file?
How do I open an asp file?
Name two properties common in every validation control?
what is diff c#and vb.net what is .net framework 3.5 what is webservice with expmles
Hii if you not select open item Management in GL Creation. What is the impact in transaction
How does VaryByCustom work?
Which choice is NOT a property of Dictionary Object? A. Key() B. CompareMode C. Item () D. Exists () E. Count
is string is a value type or reference type?
when we use ajax in.net
What is asp model?