Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


explain uses of Textstream object in ASP



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

Post New Answer

More ASP Interview Questions

___________ and ____________ properity to be used to create localized version of a form

0 Answers   DCI,


what are Naming constraints for a variable in ASP?

1 Answers  


What is a service application?

0 Answers  


How to refresh an asp page on a single click of a button?

0 Answers  


What is the difference between server-side validation and client-side validation?

0 Answers  


very Simple Question i Know But I Cant Do It public int Y { get { return _y; } set { _y = value; } } How Can i Check for Value Y in Accessories Say if Y > 5

0 Answers  


What are Constants? How will you declare a constant?

1 Answers  


how to code in asp.net for button?

1 Answers  


Define the asp scripting objects?

0 Answers  


what is the difference between render event and prerender event

2 Answers   Wipro,


Define clientcertificate collection?

0 Answers  


What are the advantages of asp?

0 Answers  


Categories