GeekInterview.com
Series: Subject: Topic:
Question: 69 of 348

what is text stream object?

Asked by: Interview Candidate | Asked on: Oct 16th, 2007
Showing Answers 1 - 1 of 1 Answers
me.seenu

Answered On : Dec 6th, 2007

View all answers by me.seenu

It facilitates sequential access to file.


The property and method arguments can be any of the properties and methods associated with the TextStream object. Note that in actual usage TextStream is replaced by a variable placeholder representing the TextStream object returned from the FileSystemObject.

Example
In the following code, a is the TextStream object returned by the CreateTextFile method on the FileSystemObject:
 Set fs = CreateObject("Scripting.FileSystemObject") Set a = fs.CreateTextFile("c:testfile.txt", True) a.WriteLine("This is a test.") a.Close 
WriteLine and Close are two methods of the TextStream Object.

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.